Skip to content

netfs, afs, cifs, cachefiles, erofs: Miscellaneous fixes

David Howells ceph-devel linux-cifs linux-erofs linux-fsdevel linux-mm linux-nfs lkml netfs v9fs 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyIn review
  2. v110 patches 9 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10netfs: Don't use certain unnecessary folio_*() functionsfs/netfs/buffered_read.c fs/netfs/buffered_write.c fs/netfs/io.c +1 more+13 -130 replies
2/10afs: Don't use certain unnecessary folio_*() functionsfs/afs/dir.c+5 -50 replies
3/10cifs: Don't use certain unnecessary folio_*() functionsfs/smb/client/file.c+5 -50 replies
4/10netfs, fscache: Prevent Oops in fscache_put_cache()fs/netfs/fscache_cache.c+2 -10 replies
5/10netfs: Fix a NULL vs IS_ERR() check in netfs_perform_write()fs/netfs/buffered_write.c+3 -20 replies
6/10cachefiles, erofs: Fix NULL deref in when cachefiles is not doing ondemand-modefs/cachefiles/ondemand.c+3 -01 reply
7/10afs: Hide silly-rename files from userspacefs/afs/dir.c+8 -00 replies
8/10afs: Fix error handling with lookup via FS.InlineBulkStatusfs/afs/dir.c include/trace/events/afs.h+34 -30 replies
9/10afs: Remove afs_dynroot_d_revalidate() as it is redundantfs/afs/dynroot.c+0 -90 replies
10/10afs: Fix missing/incorrect unlocking of RCU read lockfs/afs/proc.c+3 -20 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchMarc DionneJingbo Xu
1/10
2/10
3/10
4/10
5/10
6/10R-b
7/10
8/10R-b
9/10
10/10

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

Read the v2 thread

Cover letter [PATCH v2 00/10] netfs, afs, cifs, cachefiles, erofs: Miscellaneous fixes

Hi Christian,

Here are some miscellaneous fixes for netfslib and a number of filesystems:

(1) Replace folio_index() with folio->index in netfs, afs and cifs.

(2) Fix an oops in fscache_put_cache().

(3) Fix error handling in netfs_perform_write().

(4) Fix an oops in cachefiles when not using erofs ondemand mode.

(5) In afs, hide silly-rename files from getdents() to avoid problems with tar and suchlike.

(6) In afs, fix error handling in lookup with a bulk status fetch.

(7) In afs, afs_dynroot_d_revalidate() is redundant, so remove it.

(8) In afs, fix the RCU unlocking in afs_proc_addr_prefs_show().

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

Changes
=======
ver #2)
- Update the commit messages of the don't-use-folio_index patches.
- Move check of object->ondemand into cachefiles_ondemand_init_object().

Dan Carpenter (2):
netfs, fscache: Prevent Oops in fscache_put_cache()
netfs: Fix a NULL vs IS_ERR() check in netfs_perform_write()

David Howells (8):
netfs: Don't use certain unnecessary folio_*() functions
afs: Don't use certain unnecessary folio_*() functions
cifs: Don't use certain unnecessary folio_*() functions cachefiles, erofs: Fix NULL deref in when cachefiles is not doing
ondemand-mode
afs: Hide silly-rename files from userspace
afs: Fix error handling with lookup via FS.InlineBulkStatus
afs: Remove afs_dynroot_d_revalidate() as it is redundant
afs: Fix missing/incorrect unlocking of RCU read lock

 fs/afs/dir.c               | 30 ++++++++++++++++++++++--------
 fs/afs/dynroot.c           |  9 ---------
 fs/afs/proc.c              |  5 +++--
 fs/cachefiles/ondemand.c   |  3 +++
 fs/netfs/buffered_read.c   | 12 ++++++------
 fs/netfs/buffered_write.c  | 15 ++++++++-------
 fs/netfs/fscache_cache.c   |  3 ++-
 fs/netfs/io.c              |  2 +-
 fs/netfs/misc.c            |  2 +-
 fs/smb/client/file.c       | 10 +++++-----
 include/trace/events/afs.h | 25 +++++++++++++++++++++++++
 11 files changed, 76 insertions(+), 40 deletions(-)