Re: [PATCH] Btrfs: fix xattr loss after power failure

2018-05-14 Thread David Sterba
On Fri, May 11, 2018 at 04:42:42PM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > If a file has xattrs, we fsync it, to ensure we clear the flags > BTRFS_INODE_NEEDS_FULL_SYNC and BTRFS_INODE_COPY_EVERYTHING from its > inode, the current transaction commits and

[PATCH] Btrfs: fix xattr loss after power failure

2018-05-11 Thread fdmanana
From: Filipe Manana If a file has xattrs, we fsync it, to ensure we clear the flags BTRFS_INODE_NEEDS_FULL_SYNC and BTRFS_INODE_COPY_EVERYTHING from its inode, the current transaction commits and then we fsync it (without either of those bits being set in its inode), we end up