btrfs: fix some data races during fsync and cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | btrfs: add and use helpers for reading and writing last_log_commitfs/ fs/ fs/ +1 more | +20 | 0 replies | |
| 2/6 | btrfs: add and use helpers for reading and writing log_transidfs/ fs/ fs/ +1 more | +22 | 0 replies | |
| 3/6 | btrfs: add and use helpers for reading and writing fs_info->generationfs/ fs/ fs/ +3 more | +22 | 2 replies | |
| 4/6 | btrfs: add and use helpers for reading and writing last_trans_committedfs/ fs/ fs/ +5 more | +30 | 0 replies | |
| 5/6 | btrfs: remove pointless barrier from btrfs_sync_file()fs/ | +0 | 0 replies | |
| 6/6 | btrfs: update comment for struct btrfs_inode::lockfs/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] btrfs: fix some data races during fsync and cleanups
From: Filipe Manana <[email protected]>
The following remove some data races affecting mostly fsync. In general these are mostly harmless from a functional perspective, though there are a few cases that could cause some unexpected results but should be very rare to hit. There's also a couple cleanups here.
More details on the changelogs.
Filipe Manana (6):
btrfs: add and use helpers for reading and writing last_log_commit
btrfs: add and use helpers for reading and writing log_transid
btrfs: add and use helpers for reading and writing fs_info->generation
btrfs: add and use helpers for reading and writing last_trans_committed
btrfs: remove pointless barrier from btrfs_sync_file()
btrfs: update comment for struct btrfs_inode::lock
fs/btrfs/btrfs_inode.h | 34 +++++++++++++++++++--------------- fs/btrfs/ctree.h | 34 +++++++++++++++++++++++++++++++++- fs/btrfs/disk-io.c | 17 +++++++++-------- fs/btrfs/file.c | 5 ++--- fs/btrfs/fs.h | 30 ++++++++++++++++++++++++++++++ fs/btrfs/inode.c | 4 ++-- fs/btrfs/ioctl.c | 4 ++-- fs/btrfs/scrub.c | 2 +- fs/btrfs/super.c | 7 ++++--- fs/btrfs/sysfs.c | 2 +- fs/btrfs/transaction.c | 8 ++++---- fs/btrfs/transaction.h | 2 +- fs/btrfs/tree-checker.c | 2 +- fs/btrfs/tree-log.c | 6 +++--- 14 files changed, 112 insertions(+), 45 deletions(-)
Signature · 1 line
2.40.1