diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2012-04-06 02:35:47 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2012-05-11 10:56:39 -0400 |
commit | 477d7eafa9585ded87ee1c6f69638a6baf9d8922 (patch) | |
tree | 7508201e9d639c3049303bf91d53de6ab52e0bed /fs | |
parent | 39bab87ba6f4d8cce2b70c19e60233ad8030d7b4 (diff) |
Btrfs: fix the comment for find_first_extent_bit
The return value of find_first_extent_bit is 1 or 0, no < 0.
And if found something, return 0; if nothing was found, return 1.
Fix the comment.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 455daec2b6ce..fe91305e12fb 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -1293,7 +1293,7 @@ out: | |||
1293 | * returned if we find something, and *start_ret and *end_ret are | 1293 | * returned if we find something, and *start_ret and *end_ret are |
1294 | * set to reflect the state struct that was found. | 1294 | * set to reflect the state struct that was found. |
1295 | * | 1295 | * |
1296 | * If nothing was found, 1 is returned, < 0 on error | 1296 | * If nothing was found, 1 is returned. If found something, return 0. |
1297 | */ | 1297 | */ |
1298 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, | 1298 | int find_first_extent_bit(struct extent_io_tree *tree, u64 start, |
1299 | u64 *start_ret, u64 *end_ret, int bits) | 1299 | u64 *start_ret, u64 *end_ret, int bits) |