Btrfs: honor nodatacow/sum mount options for new files
authorChris Mason <chris.mason@oracle.com>
Thu, 2 Jul 2009 16:26:06 +0000 (12:26 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 2 Jul 2009 17:41:17 +0000 (13:41 -0400)
commit9427216476d4fa75103f39d4b228c47d56ba20da
treea6ed7b28aa778a4f9e0c9326f20215e75eb48d40
parent2c47e605a91dde6b0514f689645e7ab336c8592a
Btrfs: honor nodatacow/sum mount options for new files

The btrfs attr patches unconditionally inherited the inode flags field
without honoring nodatacow and nodatasum.  This fix makes sure
we properly record the nodatacow/sum mount options in new inodes.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c