diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-17 10:38:59 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-04-17 10:38:59 -0400 |
commit | d00a6d7b40b44ee6b03f492a6c58f5bc4649c784 (patch) | |
tree | 02c3bb7d59efe5a834f75bd9e5f48d494896a9cc /fs/ext4/xattr.c | |
parent | 216c34b2b8a3687afed4d269acec140c8baf23fe (diff) |
ext4: use ext4_group_first_block_no()
Use ext4_group_first_block_no() and assign the return values to
ext4_fsblk_t variables.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: adilger@clusterfs.com
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mingming Cao <cmm@us.ibm.com>
Diffstat (limited to 'fs/ext4/xattr.c')
-rw-r--r-- | fs/ext4/xattr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 726716b618d8..bc1d7daac8eb 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c | |||
@@ -806,10 +806,8 @@ inserted: | |||
806 | get_bh(new_bh); | 806 | get_bh(new_bh); |
807 | } else { | 807 | } else { |
808 | /* We need to allocate a new block */ | 808 | /* We need to allocate a new block */ |
809 | ext4_fsblk_t goal = le32_to_cpu( | 809 | ext4_fsblk_t goal = ext4_group_first_block_no(sb, |
810 | EXT4_SB(sb)->s_es->s_first_data_block) + | 810 | EXT4_I(inode)->i_block_group); |
811 | (ext4_fsblk_t)EXT4_I(inode)->i_block_group * | ||
812 | EXT4_BLOCKS_PER_GROUP(sb); | ||
813 | ext4_fsblk_t block = ext4_new_block(handle, inode, | 811 | ext4_fsblk_t block = ext4_new_block(handle, inode, |
814 | goal, &error); | 812 | goal, &error); |
815 | if (error) | 813 | if (error) |