Skip to content

Commit

Permalink
Btrfs: fix the comment for find_first_extent_bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Sheng-Hui authored and Josef Bacik committed May 11, 2012
1 parent 39bab87 commit 477d7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/extent_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ struct extent_state *find_first_extent_bit_state(struct extent_io_tree *tree,
* returned if we find something, and *start_ret and *end_ret are
* set to reflect the state struct that was found.
*
* If nothing was found, 1 is returned, < 0 on error
* If nothing was found, 1 is returned. If found something, return 0.
*/
int find_first_extent_bit(struct extent_io_tree *tree, u64 start,
u64 *start_ret, u64 *end_ret, int bits)
Expand Down

0 comments on commit 477d7ea

Please sign in to comment.