diff options
author | Tao Ma <boyu.mt@taobao.com> | 2011-10-08 15:53:49 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-08 15:53:49 -0400 |
commit | df3ab17072c31fbd394614711772682f0a956a2c (patch) | |
tree | bb9aa8d05dcbb6de15b79c0afd8c79a854a3d345 /fs/ext4/inode.c | |
parent | 4113c4caa4f355b8ff8b7ff0510c29c9d00d30b3 (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/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 1380cd29c312..4863238c3754 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -458,7 +458,7 @@ static void set_buffers_da_mapped(struct inode *inode, | |||
458 | * the buffer head is mapped. | 458 | * the buffer head is mapped. |
459 | * | 459 | * |
460 | * It returns 0 if plain look up failed (blocks have not been allocated), in | 460 | * It returns 0 if plain look up failed (blocks have not been allocated), in |
461 | * that casem, buffer head is unmapped | 461 | * that case, buffer head is unmapped |
462 | * | 462 | * |
463 | * It returns the error in case of allocation failure. | 463 | * It returns the error in case of allocation failure. |
464 | */ | 464 | */ |
@@ -497,7 +497,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode, | |||
497 | * Returns if the blocks have already allocated | 497 | * Returns if the blocks have already allocated |
498 | * | 498 | * |
499 | * Note that if blocks have been preallocated | 499 | * Note that if blocks have been preallocated |
500 | * ext4_ext_get_block() returns th create = 0 | 500 | * ext4_ext_get_block() returns the create = 0 |
501 | * with buffer head unmapped. | 501 | * with buffer head unmapped. |
502 | */ | 502 | */ |
503 | if (retval > 0 && map->m_flags & EXT4_MAP_MAPPED) | 503 | if (retval > 0 && map->m_flags & EXT4_MAP_MAPPED) |