]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix missing inherited flag in rename
authorLiu Bo <liubo2009@cn.fujitsu.com>
Thu, 14 Jun 2012 08:23:18 +0000 (02:23 -0600)
committerChris Mason <chris.mason@oracle.com>
Fri, 15 Jun 2012 15:33:30 +0000 (11:33 -0400)
commitc82325eb9fb25d7e9e3311a75c1209da9f93b236
tree876bb3e67c5163b238418493e44e1e865c8c85be
parentc0ea42c4282ce3298da46d275ec129d9297bc29e
Btrfs: fix missing inherited flag in rename

When we move a file into a directory with compression flag, we need to
inherite BTRFS_INODE_COMPRESS and clear BTRFS_INODE_NOCOMPRESS as well.
But if we move a file into a directory without compression flag, we need
to clear both of them.

It is the way how our setflags deals with compression flag, so keep
the same behaviour here.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c