Skip to content

mm, netfs, afs: Truncation fixes

David Howells ceph-devel linux-cifs linux-erofs linux-fsdevel linux-mm linux-nfs lkml netfs v9fs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: Fix missing folio invalidation calls during truncationmm/truncate.c+2 -20 replies
2/4afs: Fix post-setattr file edit to do truncation correctlyfs/afs/inode.c+8 -30 replies
3/4netfs: Fix netfs_release_folio() to say no if folio dirtyfs/netfs/misc.c+3 -00 replies
4/4netfs: Fix trimming of streaming-write folios in netfs_inval_folio()fs/netfs/misc.c+35 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] mm, netfs, afs: Truncation fixes

Hi Christian,

Here are some fixes for truncation, netfslib and afs that I discovered whilst trying Pankaj Raghav's minimum folio order patchset:

(1) Fix truncate to make it honour AS_RELEASE_ALWAYS in a couple of places that got missed.

(2) Fix duplicated editing of a partially invalidated folio in afs's post-setattr edit phase.

(3) Fix netfs_release_folio() to indicate that the folio is busy if the folio is dirty (as does iomap).

(4) Fix the trimming of a folio that contain streaming-write data when truncation occurs into or past that folio

The patches can also be found here:

https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes

Thanks,
David

David Howells (4):
mm: Fix missing folio invalidation calls during truncation
afs: Fix post-setattr file edit to do truncation correctly
netfs: Fix netfs_release_folio() to say no if folio dirty
netfs: Fix trimming of streaming-write folios in netfs_inval_folio()

 fs/afs/inode.c  | 11 +++++++---
 fs/netfs/misc.c | 53 +++++++++++++++++++++++++++++++++++--------------
 mm/truncate.c   |  4 ++--
 3 files changed, 48 insertions(+), 20 deletions(-)