Btrfs: fix missing log when BTRFS_INODE_NEEDS_FULL_SYNC is set
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 1 Nov 2012 07:35:23 +0000 (07:35 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:22 +0000 (17:15 -0500)
commit5269b67e3d809dcaa4c6763a343423bb1b7b3fe6
treec4bb6f76990b954c3aad8ab140155a0365e6ff38
parentbbe1426764e5dfaa57e7b12cc954acdb3fb7f94b
Btrfs: fix missing log when BTRFS_INODE_NEEDS_FULL_SYNC is set

If we set BTRFS_INODE_NEEDS_FULL_SYNC, we should log all the extent,
but now we forget to take it into account, and set a wrong max key,
if so, we will skip the file extent metadata when doing logging. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c