[GIT PULL] vfs netfs

From: Christian Brauner
Date: Fri Nov 15 2024 - 09:01:05 EST


Hey Linus,

A pidfs patch ended up in the branch and I didn't notice it. I decided
to leave it in here instead of rebasing the whole branch.

/* Summary */

This contains various fixes for the netfs library and related
filesystems and infrastructure:

afs:

- Fix missing wire-up of afs_retry_request().

- Fix the setting of the server responding flag in afs.

- Fix possible infinite loop with unresponsive servers.

- Remove unused struct and function prototype.

cachefiles:

- Fix a dentry leak in cachefiles_open_file().

- Fix incorrect length return value in cachefiles_ondemand_fd_write_iter().

- Fix missing pos updates in cachefiles_ondemand_fd_write_iter().

- Clean up in cachefiles_commit_tmpfile().

- Fix NULL pointer dereference in object->file.

- Add a memory barrier for FSCACHE_VOLUME_CREATING.

netfs:

- Advance iterator correctly rather than jumping it.

- Add folio_queue API documentation.

- Fix the netfs_folio tracepoint to handle NULL mapping.

- Remove call to folio_index().

- Fix a few minor bugs in netfs_page_mkwrite().

- Remove unnecessary references to pages.

pidfs:

- Check for valid pid namespace.

/* Testing */

gcc version 14.2.0 (Debian 14.2.0-6)
Debian clang version 16.0.6 (27+b1)

All patches are based on v6.12-rc1 and have been sitting in linux-next.
No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc:

Linux 6.12-rc1 (2024-09-29 15:06:19 -0700)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.13.netfs

for you to fetch changes up to a4b2923376be062a243ac38762212a38485cfab1:

Merge patch series "fscache/cachefiles: Some bugfixes" (2024-11-11 14:39:39 +0100)

Please consider pulling these changes from the signed vfs-6.13.netfs tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.13.netfs

----------------------------------------------------------------
Baokun Li (1):
cachefiles: fix dentry leak in cachefiles_open_file()

Christian Brauner (3):
pidfs: check for valid pid namespace
Merge patch series "Random netfs folio fixes"
Merge patch series "fscache/cachefiles: Some bugfixes"

David Howells (5):
afs: Fix missing wire-up of afs_retry_request()
afs: Fix the setting of the server responding flag
netfs: Advance iterator correctly rather than jumping it
netfs: Add folio_queue API documentation
netfs: Fix the netfs_folio tracepoint to handle NULL mapping

Marc Dionne (1):
afs: Fix possible infinite loop with unresponsive servers

Matthew Wilcox (Oracle) (3):
netfs: Remove call to folio_index()
netfs: Fix a few minor bugs in netfs_page_mkwrite()
netfs: Remove unnecessary references to pages

Thorsten Blum (1):
afs: Remove unused struct and function prototype

Zizhi Wo (5):
cachefiles: Fix incorrect length return value in cachefiles_ondemand_fd_write_iter()
cachefiles: Fix missing pos updates in cachefiles_ondemand_fd_write_iter()
cachefiles: Clean up in cachefiles_commit_tmpfile()
cachefiles: Fix NULL pointer dereference in object->file
netfs/fscache: Add a memory barrier for FSCACHE_VOLUME_CREATING

Documentation/core-api/folio_queue.rst | 212 +++++++++++++++++++++++++++++++++
fs/afs/afs_vl.h | 9 --
fs/afs/file.c | 1 +
fs/afs/fs_operation.c | 2 +-
fs/afs/fs_probe.c | 4 +-
fs/afs/rotate.c | 11 +-
fs/cachefiles/interface.c | 14 ++-
fs/cachefiles/namei.c | 12 +-
fs/cachefiles/ondemand.c | 38 ++++--
fs/netfs/buffered_read.c | 8 +-
fs/netfs/buffered_write.c | 41 ++++---
fs/netfs/fscache_volume.c | 3 +-
fs/netfs/write_issue.c | 12 +-
fs/pidfs.c | 5 +-
include/linux/folio_queue.h | 168 ++++++++++++++++++++++++++
include/trace/events/netfs.h | 5 +-
16 files changed, 475 insertions(+), 70 deletions(-)
create mode 100644 Documentation/core-api/folio_queue.rst