[GIT PULL] vfs fixes

From: Christian Brauner
Date: Mon Oct 21 2024 - 07:47:45 EST


Hey Linus,

/* Summary */
This contains a few fixes:

afs:

- Fix a lock recursion in afs_wake_up_async_call() on ->notify_lock.

netfs:

- Drop the references to a folio immediately after the folio has been
extracted to prevent races with future I/O collection.

- Fix a documenation build error.

- Downgrade the i_rwsem for buffered writes to fix a cifs reported
performance regression when switching to netfslib.

vfs:

- Explicitly return -E2BIG from openat2() if the specified size is
unexpectedly large. This aligns openat2() with other extensible struct
based system calls.

- When copying a mount namespace ensure that we only try to remove the
new copy from the mount namespace rbtree if it has already been added
to it.

nilfs:

- Clear the buffer delay flag when clearing the buffer state clags when
a buffer head is discarded to prevent a kernel OOPs.

ocfs2:

- Fix an unitialized value warning in ocfs2_setattr().

proc:

- Fix a kernel doc warning.

/* Testing */

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

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

/* Conflicts */

No known conflicts.

The following changes since commit 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b:

Linux 6.12-rc2 (2024-10-06 15:32:27 -0700)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.12-rc5.fixes

for you to fetch changes up to 197231da7f6a2e9884f84a4a463f53f9f491d920:

proc: Fix W=1 build kernel-doc warning (2024-10-18 13:02:47 +0200)

Please consider pulling these changes from the signed vfs-6.12-rc5.fixes tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.12-rc5.fixes

----------------------------------------------------------------
Aleksa Sarai (1):
openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)

Alessandro Zanni (1):
fs: Fix uninitialized value issue in from_kuid and from_kgid

Christian Brauner (1):
fs: don't try and remove empty rbtree node

David Howells (3):
netfs: In readahead, put the folio refs as soon extracted
netfs: Downgrade i_rwsem for a buffered write
afs: Fix lock recursion

Jonathan Corbet (1):
netfs: fix documentation build error

Ryusuke Konishi (1):
nilfs2: fix kernel bug due to missing clearing of buffer delay flag

Thorsten Blum (1):
proc: Fix W=1 build kernel-doc warning

Documentation/filesystems/netfs_library.rst | 1 -
fs/afs/internal.h | 2 +
fs/afs/rxrpc.c | 83 ++++++++++++++++++++---------
fs/namespace.c | 4 +-
fs/netfs/buffered_read.c | 47 +++++-----------
fs/netfs/locking.c | 3 +-
fs/netfs/read_collect.c | 2 +
fs/nilfs2/page.c | 6 ++-
fs/ocfs2/file.c | 9 ++--
fs/open.c | 2 +
fs/proc/fd.c | 2 +-
include/trace/events/netfs.h | 1 -
12 files changed, 95 insertions(+), 67 deletions(-)