aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorTao Ma <boyu.mt@taobao.com>2011-10-08 15:53:49 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-08 15:53:49 -0400
commitdf3ab17072c31fbd394614711772682f0a956a2c (patch)
treebb9aa8d05dcbb6de15b79c0afd8c79a854a3d345 /fs/ext4/extents.c
parent4113c4caa4f355b8ff8b7ff0510c29c9d00d30b3 (diff)
ext4: fix the comment describing ext4_ext_search_right()
The comment describing what ext4_ext_search_right() does is incorrect. We return 0 in *phys when *logical is the 'largest' allocated block, not smallest. Fix a few other typos while we're at it. Cc: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index ad39627c1fbc..142e3443476f 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -1263,7 +1263,7 @@ static int ext4_ext_search_left(struct inode *inode,
1263/* 1263/*
1264 * search the closest allocated block to the right for *logical 1264 * search the closest allocated block to the right for *logical
1265 * and returns it at @logical + it's physical address at @phys 1265 * and returns it at @logical + it's physical address at @phys
1266 * if *logical is the smallest allocated block, the function 1266 * if *logical is the largest allocated block, the function
1267 * returns 0 at @phys 1267 * returns 0 at @phys
1268 * return value contains 0 (success) or error code 1268 * return value contains 0 (success) or error code
1269 */ 1269 */
@@ -2168,7 +2168,7 @@ int ext4_ext_calc_credits_for_single_extent(struct inode *inode, int nrblocks,
2168 * need to account for leaf block credit 2168 * need to account for leaf block credit
2169 * 2169 *
2170 * bitmaps and block group descriptor blocks 2170 * bitmaps and block group descriptor blocks
2171 * and other metadat blocks still need to be 2171 * and other metadata blocks still need to be
2172 * accounted. 2172 * accounted.
2173 */ 2173 */
2174 /* 1 bitmap, 1 block group descriptor */ 2174 /* 1 bitmap, 1 block group descriptor */