diff options
author | Takashi Sato <sho@tnes.nec.co.jp> | 2006-03-26 04:37:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:00 -0500 |
commit | a0f62ac6362c168754cccb36f196b3dfbddc3bc3 (patch) | |
tree | 079d525cfbf9851e2cb30acda77d180388d03c69 /include/linux/fs.h | |
parent | abcb6c9fd13fc2ad7757b818924dc8109a0e3775 (diff) |
[PATCH] 2TB files: add blkcnt_t
Add blkcnt_t as the type of inode.i_blocks. This enables you to make the size
of blkcnt_t either 4 bytes or 8 bytes on 32 bits architecture with CONFIG_LSF.
- CONFIG_LSF
Add new configuration parameter.
- blkcnt_t
On h8300, i386, mips, powerpc, s390 and sh that define sector_t,
blkcnt_t is defined as u64 if CONFIG_LSF is enabled; otherwise it is
defined as unsigned long.
On other architectures, it is defined as unsigned long.
- inode.i_blocks
Change the type from sector_t to blkcnt_t.
Signed-off-by: Takashi Sato <sho@tnes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 64b0ca4f14e3..155d29d5e5e4 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -490,7 +490,7 @@ struct inode { | |||
490 | unsigned int i_blkbits; | 490 | unsigned int i_blkbits; |
491 | unsigned long i_blksize; | 491 | unsigned long i_blksize; |
492 | unsigned long i_version; | 492 | unsigned long i_version; |
493 | sector_t i_blocks; | 493 | blkcnt_t i_blocks; |
494 | unsigned short i_bytes; | 494 | unsigned short i_bytes; |
495 | spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ | 495 | spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ |
496 | struct mutex i_mutex; | 496 | struct mutex i_mutex; |