btrfs: fix a bug with truncation and writeback and cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | btrfs: truncate ordered extent when skipping writeback past i_sizefs/ fs/ | +22 | 1 reply | |
| 2/7 | btrfs: use variable for end offset in extent_writepage_io()fs/ | +5 | 1 reply | |
| 3/7 | btrfs: split assertion into two in extent_writepage_io()fs/ | +3 | 1 reply | |
| 4/7 | btrfs: add unlikely to unexpected error case in extent_writepages()fs/ | +1 | 1 reply | |
| 5/7 | btrfs: consistently round up or down i_size in btrfs_truncate()fs/ | +4 | 1 reply | |
| 6/7 | btrfs: avoid multiple i_size rounding in btrfs_truncate()fs/ | +8 | 1 reply | |
| 7/7 | btrfs: avoid repeated computations in btrfs_mark_ordered_io_finished()fs/ | +8 | 1 reply |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Qu Wenruo |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] btrfs: fix a bug with truncation and writeback and cleanups
From: Filipe Manana <[email protected]>
The first patch fixes a bug where we can up persisting a file extent item that crosses the i_size boundary, making btrfs check complain because it won't find checksum items beyond the i_size boundary. Details in the change log. The rest are several cleanups in related code that popped up while debugging the issue.
Filipe Manana (7):
btrfs: truncate ordered extent when skipping writeback past i_size
btrfs: use variable for end offset in extent_writepage_io()
btrfs: split assertion into two in extent_writepage_io()
btrfs: add unlikely to unexpected error case in extent_writepages()
btrfs: consistently round up or down i_size in btrfs_truncate()
btrfs: avoid multiple i_size rounding in btrfs_truncate()
btrfs: avoid repeated computations in btrfs_mark_ordered_io_finished()
fs/btrfs/extent_io.c | 33 ++++++++++++++++++++++++++------- fs/btrfs/inode.c | 18 ++++++++---------- fs/btrfs/ordered-data.c | 23 +++++++++++------------ 3 files changed, 45 insertions(+), 29 deletions(-)
Signature · 1 line
2.47.2