]> git.hungrycats.org Git - linux/commitdiff
Btrfs: fix a comment in inode.c:evict_inode_truncate_pages()
authorFilipe Manana <fdmanana@suse.com>
Wed, 10 Jun 2015 11:55:41 +0000 (12:55 +0100)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Sat, 4 Jul 2015 02:00:08 +0000 (22:00 -0400)
The comment was not correct about the part where it says the endio
callback of the bio might have not yet been called - update it
to mention that by that time the endio callback execution might
still be in progress only.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
(cherry picked from commit 68d53e1519672988fa20a19e62df1484d76aab36)

fs/btrfs/inode.c

index 855935f6671ae59b1b025c3916d553bc689191ef..a21ad34de67179069a19eccd9635dd48ee943e77 100644 (file)
@@ -4989,8 +4989,9 @@ static void evict_inode_truncate_pages(struct inode *inode)
        /*
         * Keep looping until we have no more ranges in the io tree.
         * We can have ongoing bios started by readpages (called from readahead)
-        * that didn't get their end io callbacks called yet or they are still
-        * in progress ((extent_io.c:end_bio_extent_readpage()). This means some
+        * that have their endio callback (extent_io.c:end_bio_extent_readpage)
+        * still in progress (unlocked the pages in the bio but did not yet
+        * unlocked the ranges in the io tree). Therefore this means some
         * ranges can still be locked and eviction started because before
         * submitting those bios, which are executed by a separate task (work
         * queue kthread), inode references (inode->i_count) were not taken