Re: [PATCH] Btrfs: atomically set inode-i_flags in btrfs_update_iflags

2014-07-01 Thread David Sterba
On Wed, Jun 25, 2014 at 10:36:02PM +0100, Filipe David Borba Manana wrote: This change is based on the corresponding recent change for ext4: ext4: atomically set inode-i_flags in ext4_set_inode_flags() That has the following commit message that applies to btrfs as well: Use cmpxchg()

Re: [PATCH] Btrfs: atomically set inode-i_flags in btrfs_update_iflags

2014-07-01 Thread Satoru Takeuchi
(2014/07/02 8:56), David Sterba wrote: On Wed, Jun 25, 2014 at 10:36:02PM +0100, Filipe David Borba Manana wrote: This change is based on the corresponding recent change for ext4: ext4: atomically set inode-i_flags in ext4_set_inode_flags() That has the following commit message that

[PATCH] Btrfs: atomically set inode-i_flags in btrfs_update_iflags

2014-06-25 Thread Filipe David Borba Manana
This change is based on the corresponding recent change for ext4: ext4: atomically set inode-i_flags in ext4_set_inode_flags() That has the following commit message that applies to btrfs as well: Use cmpxchg() to atomically set i_flags instead of clearing out the S_IMMUTABLE, S_APPEND,