From: Liu Bo Date: Mon, 25 Feb 2013 04:04:42 +0000 (+0000) Subject: Btrfs: do not change inode flags in rename X-Git-Tag: v3.9-rc1~17^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c4ce81e911ab6c84e4f75e18d4ceb3fa555c35b;p=pandora-kernel.git Btrfs: do not change inode flags in rename Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW status, eg. if someone change a file to NOCOW via 'chattr' and then rename it in the current directory which is without NOCOW attribute, the file will lose the NOCOW flag silently. This diables 'change flags in rename', so from now on we'll only inherit flags from the parent directory on creation stage while in other places we can use 'chattr' to set NOCOW or COMPRESS flags. Reported-by: Marios Titas Signed-off-by: Liu Bo Reviewed-by: David Sterba Signed-off-by: Josef Bacik --- Reading git-diff-tree failed