From: Stefan Behrens Date: Wed, 23 May 2012 15:57:49 +0000 (+0200) Subject: Btrfs: fix false positive in check-integrity on unmount X-Git-Tag: v3.5-rc1~17^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48235a68a3d1db579fc20d9915815228a1825757;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Btrfs: fix false positive in check-integrity on unmount During unmount, it could happen that the integrity checker printed a warning message "attempt to free ... on umount which is not yet iodone" which turned out to be a false positive. Signed-off-by: Stefan Behrens --- diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index ed76183..9cebb1f 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c @@ -3337,7 +3337,7 @@ void btrfsic_unmount(struct btrfs_root *root, btrfsic_block_link_free(l); } - if (b_all->is_iodone) + if (b_all->is_iodone || b_all->never_written) btrfsic_block_free(b_all); else printk(KERN_INFO "btrfs: attempt to free %c-block"