diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-28 11:16:02 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 17:58:43 +0200 |
commit | 4c8b3125f8dcefd1ee2990113fe69cfa9e9fa609 (patch) | |
tree | e78c0c6b51b51e4455f4bb598b3e1c5281cbe377 /fs/ext2 | |
parent | ext2: use ext2_group_first_block_no() (diff) | |
download | linux-4c8b3125f8dcefd1ee2990113fe69cfa9e9fa609.tar.xz linux-4c8b3125f8dcefd1ee2990113fe69cfa9e9fa609.zip |
ext2: use ext2_fsblk_t type
Use ext2_fsblk_t type for filesystem-wide blocks number
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index be0d02ac7ac4..384fc0d1dd74 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -254,13 +254,13 @@ no_block: * Caller must make sure that @ind is valid and will stay that way. */ -static unsigned long ext2_find_near(struct inode *inode, Indirect *ind) +static ext2_fsblk_t ext2_find_near(struct inode *inode, Indirect *ind) { struct ext2_inode_info *ei = EXT2_I(inode); __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; __le32 *p; - unsigned long bg_start; - unsigned long colour; + ext2_fsblk_t bg_start; + ext2_fsblk_t colour; /* Try to find previous block */ for (p = ind->p - 1; p >= start; p--) @@ -290,8 +290,8 @@ static unsigned long ext2_find_near(struct inode *inode, Indirect *ind) * Returns preferred place for a block (the goal). */ -static inline int ext2_find_goal(struct inode *inode, long block, - Indirect *partial) +static inline ext2_fsblk_t ext2_find_goal(struct inode *inode, long block, + Indirect *partial) { struct ext2_block_alloc_info *block_i; |