]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: fix the comment for find_first_extent_bit
authorWang Sheng-Hui <shhuiw@gmail.com>
Fri, 6 Apr 2012 06:35:47 +0000 (14:35 +0800)
committerJosef Bacik <josef@redhat.com>
Fri, 11 May 2012 14:56:39 +0000 (10:56 -0400)
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>
fs/btrfs/extent_io.c

index 455daec2b6cefc329dd1ae63a27d1b2de8f524d9..fe91305e12fbc0756da6429e4c9e2189740a143f 100644 (file)
@@ -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)