diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-28 05:16:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:43 -0400 |
commit | 24097d12efbb97bff14fb6e350508853db0f9595 (patch) | |
tree | fb451eaebde9550954493b8a17949e6cce16782d /fs/ext2/xattr.c | |
parent | bbff28602436cc7ca660757bba81f03b99e8586d (diff) |
ext2: use ext2_group_first_block_no()
Use ext2_group_first_block_no() and assign the return values to
ext2_fsblk_t variables.
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/xattr.c')
-rw-r--r-- | fs/ext2/xattr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index b86f02747eaf..987a5261cc2e 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c | |||
@@ -659,10 +659,8 @@ ext2_xattr_set2(struct inode *inode, struct buffer_head *old_bh, | |||
659 | ext2_xattr_cache_insert(new_bh); | 659 | ext2_xattr_cache_insert(new_bh); |
660 | } else { | 660 | } else { |
661 | /* We need to allocate a new block */ | 661 | /* We need to allocate a new block */ |
662 | int goal = le32_to_cpu(EXT2_SB(sb)->s_es-> | 662 | ext2_fsblk_t goal = ext2_group_first_block_no(sb, |
663 | s_first_data_block) + | 663 | EXT2_I(inode)->i_block_group); |
664 | EXT2_I(inode)->i_block_group * | ||
665 | EXT2_BLOCKS_PER_GROUP(sb); | ||
666 | int block = ext2_new_block(inode, goal, &error); | 664 | int block = ext2_new_block(inode, goal, &error); |
667 | if (error) | 665 | if (error) |
668 | goto cleanup; | 666 | goto cleanup; |