mbox series

[v2,0/3] misc iomap/xfs writeback fixes

Message ID 20201029132325.1663790-1-bfoster@redhat.com (mailing list archive)
Headers show
Series misc iomap/xfs writeback fixes | expand

Message

Brian Foster Oct. 29, 2020, 1:23 p.m. UTC
Hi all,

Patch 1 is actually a repost of the original fix I posted[1] for the
truncate down zeroing issue. Patch 2 has some minor tweaks based on
feedback on v1 from Christoph. Patch 3 is new and fixes up some of the
remaining broken iomap writepage error handling logic (also discussed in
the v1 thread). Thoughts, reviews, flames appreciated.

Brian 

v2:
- Repost original XFS truncate down post-EOF zeroing fix.
- Pass file offset to iomap ->discard_page() callback.
- Add patch 3 to fix up iomap writepage error handling.
v1: https://lore.kernel.org/linux-xfs/20201026182019.1547662-1-bfoster@redhat.com/

[1] https://lore.kernel.org/linux-xfs/20201007143509.669729-1-bfoster@redhat.com/

Brian Foster (3):
  xfs: flush new eof page on truncate to avoid post-eof corruption
  iomap: support partial page discard on writeback block mapping failure
  iomap: clean up writeback state logic on writepage error

 fs/iomap/buffered-io.c | 30 ++++++++++--------------------
 fs/xfs/xfs_aops.c      | 13 +++++++------
 fs/xfs/xfs_iops.c      | 10 ++++++++++
 include/linux/iomap.h  |  2 +-
 4 files changed, 28 insertions(+), 27 deletions(-)