From: Filipe Manana <fdman...@suse.com> The first patch fixes a race between fsync and memory mapped writes, which can result in corruptions. The second one fixes a different race that in practice should be "impossible" to happen, but in case it's triggered somehow, results in not logging an inode when it has new extents. The last patch just removes some no longer needed code.
The first patch, as mentioned in its changelog, depends on Josef's patchset which has the subject: "Introduce a mmap sem to deal with some mmap issues" The others are independent of it. Filipe Manana (3): btrfs: fix race between memory mapped writes and fsync btrfs: fix race between marking inode needs to be logged and log syncing btrfs: remove stale comment and logic from btrfs_inode_in_log() fs/btrfs/btrfs_inode.h | 32 +++++++++++++++++++------------- fs/btrfs/file.c | 28 +++++++++++----------------- fs/btrfs/inode.c | 4 +--- fs/btrfs/transaction.h | 2 +- 4 files changed, 32 insertions(+), 34 deletions(-) -- 2.28.0