From: Wang Sheng-Hui <shhuiw@gmail.com> Date: Fri, 6 Apr 2012 06:35:47 +0000 (+0800) Subject: Btrfs: fix the comment for find_first_extent_bit X-Git-Tag: firefly_0821_release~3680^2~2518^2~42^2~33 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=477d7eafa9585ded87ee1c6f69638a6baf9d8922;p=firefly-linux-kernel-4.4.55.git 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> --- 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: * 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)