diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-08 18:37:30 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-10-08 18:37:30 -0700 |
| commit | 6179fd182aac68edacdf20dd0c264d64bce8410e (patch) | |
| tree | 44dbc23c94879f0cdbf4d957f93a27c1e43dfbfc /include/linux/loop.h | |
| parent | be48ef9e5c863cdb1296c33fddf8e87849e67068 (diff) | |
[PATCH] 64-bit sector_t - driver changes
From Peter Chubb
Compaq Smart array sector_t cleanup: prepare for possible 64-bit sector_t
Clean up loop device to allow huge backing files.
MD transition to 64-bit sector_t.
- Hold sizes and offsets as sector_t not int;
- use 64-bit arithmetic if necessary to map block-in-raid to zone
and block-in-zone
Diffstat (limited to 'include/linux/loop.h')
| -rw-r--r-- | include/linux/loop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/loop.h b/include/linux/loop.h index e2db7af9a438..116980ee5daa 100644 --- a/include/linux/loop.h +++ b/include/linux/loop.h @@ -33,7 +33,7 @@ struct loop_device { int lo_flags; int (*transfer)(struct loop_device *, int cmd, char *raw_buf, char *loop_buf, int size, - int real_block); + sector_t real_block); char lo_name[LO_NAME_SIZE]; char lo_encrypt_key[LO_KEY_SIZE]; __u32 lo_init[2]; @@ -123,7 +123,7 @@ struct loop_info { struct loop_func_table { int number; /* filter type */ int (*transfer)(struct loop_device *lo, int cmd, char *raw_buf, - char *loop_buf, int size, int real_block); + char *loop_buf, int size, sector_t real_block); int (*init)(struct loop_device *, struct loop_info *); /* release is called from loop_unregister_transfer or clr_fd */ int (*release)(struct loop_device *); |
