Skip to content

netfs: Miscellaneous fixes

David Howells ceph-devel linux-cifs linux-fsdevel lkml netfs 1 version Applied

Status from this message: Applied to the vfs.fixes branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4netfs: clear PG_private_2 on copy-to-cache append failurefs/netfs/read_pgpriv2.c+1 -01 reply
2/4netfs: handle single writeback rolling buffer allocation failurefs/netfs/write_issue.c+6 -10 replies
3/4netfs: release readahead folios on iterator preparation failurefs/netfs/buffered_read.c+3 -10 replies
4/4netfs: Fix folio_queue ENOMEM in writeback by adding a mempoolfs/netfs/buffered_read.c fs/netfs/internal.h fs/netfs/main.c +6 more+52 -331 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

Patch[email protected]
1/4
2/4
3/4
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] netfs: Miscellaneous fixes

Hi Christian,

Here are some miscellaneous fixes for netfslib.

(1) Clear PG_private_2 on copy-to-cache append failure.

(2) Fix handling of rolling buffer allocation failure in single-object writeback. This is probably unnecessary with (4), but if we're only writing to the cache, we can skip the write.

(3) Fix cleanup of readeahead folios if iterator preparation fails.

(4) Fix folio_queue allocation failure in writeback by adding a mempool. This also improves request and subrequest allocation.

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 (1):
netfs: Fix folio_queue ENOMEM in writeback by adding a mempool

Yichong Chen (3):
netfs: clear PG_private_2 on copy-to-cache append failure
netfs: handle single writeback rolling buffer allocation failure
netfs: release readahead folios on iterator preparation failure

 fs/netfs/buffered_read.c       | 10 ++++++----
 fs/netfs/internal.h            |  1 +
 fs/netfs/main.c                |  7 +++++++
 fs/netfs/objects.c             | 31 +++++++++++++++++++------------
 fs/netfs/read_pgpriv2.c        |  3 ++-
 fs/netfs/rolling_buffer.c      | 21 ++++++++++++---------
 fs/netfs/write_issue.c         | 15 ++++++++++-----
 include/linux/netfs.h          |  1 +
 include/linux/rolling_buffer.h |  6 +++---
 9 files changed, 61 insertions(+), 34 deletions(-)