]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs: remove FS_COW_FL
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 15 Apr 2011 03:02:49 +0000 (03:02 +0000)
committerChris Mason <chris.mason@oracle.com>
Sat, 14 May 2011 20:10:26 +0000 (16:10 -0400)
commite1e8fb6a1ff3f9487e03a4cbf85b81d1316068ce
treea7cd1ba1f93d163e2ca02b8172888f43e444713f
parent1aba86d67f340a8001d67183ec32e8a62e3ec658
fs: remove FS_COW_FL

FS_COW_FL and FS_NOCOW_FL were newly introduced to control per file
COW in btrfs, but FS_NOCOW_FL is sufficient.

The fact is we don't have corresponding BTRFS_INODE_COW flag.

COW is default, and FS_NOCOW_FL can be used to switch off COW for
a single file.

If we mount btrfs with nodatacow, a newly created file will be set with
the FS_NOCOW_FL flag. So to turn on COW for it, we can just clear the
FS_NOCOW_FL flag.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c
include/linux/fs.h