btrfs-progs: clean fsck noise for free inode generation 0
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Wed, 18 Jun 2014 05:28:22 +0000 (13:28 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:43:09 +0000 (14:43 +0200)
commit978542ff59e731dcc45084a7341b2cd8b5437163
tree3530085e7323d2575026006cd482bf00a12dbeee
parent445a3a0a51f03a3e1c35dacbd065a2c9efeadf97
btrfs-progs: clean fsck noise for free inode generation 0

When we write a btrfs to full and then we have no space left for
free space cache.
The btrfs check will output msg as follows which is noise indeed:
# free space inode generation (0) did not match
  free space cache generation (XXX)

When the free space cache is not written out normally,
the free inode generation will be 0.
In this condition, no noise should be outputed.
Also, check 0-sized inode eariler together with 0-generationed inode.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
free-space-cache.c