Btrfs-progs: don't output baffling message when checking a fresh fs
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 25 Oct 2013 09:30:45 +0000 (17:30 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:21:59 +0000 (08:21 -0800)
commitb4f4473e8a88896c8ff12578183af0f099d33591
tree1a39d6ec8c2f9042d898dbec8b135d2178a9a108
parent1f5e3b2825a3a3763334aeffecaf442ad18750c2
Btrfs-progs: don't output baffling message when checking a fresh fs

As we know,  a new fs doesn't have space cache, so we set the cache generation
of the super block to be -1ULL, it is not equal to the fs generation. But the
check program didn't consider this case, and output the following message

  cache and super generation don't match, space cache will be invalidated

directly, it would be baffling the users. So we should avoid outputing such
message. This patch fixes this problem.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-check.c