exfat: fix valid_size handling and locking
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 0 repliesNew
- v15 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | exfat: advance valid_size to EOF for append writesfs/ | +8 | 0 replies | |
| 2/7 | exfat: hold the invalidate lock while truncatingfs/ | +4 | 0 replies | |
| 3/7 | exfat: dirty all new pages when extending valid_sizefs/ | +13 | 0 replies | |
| 4/7 | exfat: make valid_size and zeroed_size atomicfs/ fs/ fs/ +2 more | +96 | 0 replies | |
| 5/7 | exfat: publish valid_size under the folio lock for buffered writesfs/ fs/ fs/ | +23 | 0 replies | |
| 6/7 | exfat: advance valid_size while zeroing new rangesfs/ | +5 | 0 replies | |
| 7/7 | exfat: drop i_rwsem from exfat_page_mkwritefs/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/7] exfat: fix valid_size handling and locking
From: Chi Zhiling <[email protected]>
valid_size marks the on-disk up-to-date (VDL) region of an exFAT file. Data below it is valid; data at or above it is a hole that reads zero-fill, so valid_size must be advanced in the window where the data actually becomes valid.
Patches 1-3 fix the standalone bugs (append offset, truncate vs mmap locking, dirtying of newly zeroed pages), patch 4 makes valid_size and zeroed_size monotonic atomic counters as a prerequisite, and patches 5-7 advance valid_size under the folio lock and drop i_rwsem from ->page_mkwrite.
V1: https://lore.kernel.org/exfat/[email protected]/
Chi Zhiling (7):
exfat: advance valid_size to EOF for append writes
exfat: hold the invalidate lock while truncating
exfat: dirty all new pages when extending valid_size
exfat: make valid_size and zeroed_size atomic
exfat: publish valid_size under the folio lock for buffered writes
exfat: advance valid_size while zeroing new ranges
exfat: drop i_rwsem from exfat_page_mkwrite
fs/exfat/exfat_fs.h | 60 +++++++++++++++- fs/exfat/file.c | 166 +++++++++++++++----------------------------- fs/exfat/inode.c | 16 +++-- fs/exfat/iomap.c | 36 +++++++--- fs/exfat/iomap.h | 1 + fs/exfat/namei.c | 4 +- 6 files changed, 151 insertions(+), 132 deletions(-)
Signature · 1 line
2.53.0