RFC fs: introduce super write guard
Get series with b4
b4 am [email protected] change-id 20251104-work-guards-fe3d7a09e258Versions newest first
- v1 RFC Latest8 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | fs: add super_write_guardinclude/ | +5 | 1 reply | |
| 2/8 | btrfs: use super write guard in btrfs_reclaim_bgs_work()fs/ | +1 | 2 replies | |
| 3/8 | btrfs: use super write guard btrfs_run_defrag_inode()fs/ | +3 | 2 replies | |
| 4/8 | btrfs: use super write guard in sb_start_write()fs/ | +2 | 2 replies | |
| 5/8 | ext4: use super write guard in write_mmp_block()fs/ | +2 | 5 replies | |
| 6/8 | btrfs: use super write guard in relocating_repair_kthread()fs/ | +2 | 0 replies | |
| 7/8 | open: use super write guard in do_ftruncate()fs/ | +3 | 2 replies | |
| 8/8 | xfs: use super write guard in xfs_file_ioctl()fs/ | +2 | 4 replies |
Reviews trailers per patch
3 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Jan Kara | Theodore Ts'o |
|---|---|---|
| 1/8 | R-b | |
| 2/8 | ||
| 3/8 | ||
| 4/8 | ||
| 5/8 | R-b | A-b |
| 6/8 | ||
| 7/8 | R-b | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 0/8] fs: introduce super write guard
Hey,
I'm in the process of adding a few more guards for vfs constructs. I've chosen the easy case of super_start_write() and super_end_write() and converted eligible callers. I think long-term we can move a lot of the manual placement to completely rely on guards - where sensible.
Christian
---
Christian Brauner (8):
fs: add super_write_guard
btrfs: use super write guard in btrfs_reclaim_bgs_work()
btrfs: use super write guard btrfs_run_defrag_inode()
btrfs: use super write guard in sb_start_write()
ext4: use super write guard in write_mmp_block()
btrfs: use super write guard in relocating_repair_kthread()
open: use super write guard in do_ftruncate()
xfs: use super write guard in xfs_file_ioctl()
fs/btrfs/block-group.c | 3 +-- fs/btrfs/defrag.c | 7 +++---- fs/btrfs/volumes.c | 7 ++++--- fs/ext4/mmp.c | 8 ++------ fs/open.c | 9 +++------ fs/xfs/xfs_ioctl.c | 6 ++---- include/linux/fs.h | 5 +++++ 7 files changed, 20 insertions(+), 25 deletions(-)
---
base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa
change-id: 20251104-work-guards-fe3d7a09e258