Skip to content

super: retire sget()

Christian Brauner linux-cifs linux-ext4 linux-fsdevel 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20260526-work-sget-6bc80b96cba5

Versions newest first

  1. v2 Latest4 patches 3 repliesIn review
  2. v18 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Move some changes into a separate series.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ext4: convert extents KUnit test to sget_fc()fs/ext4/extents-test.c+18 -41 reply
2/4ext4: convert mballoc KUnit test to sget_fc()fs/ext4/mballoc-test.c+15 -21 reply
3/4smb: client: convert cifs_smb3_do_mount() to sget_fc()fs/smb/client/cifsfs.c fs/smb/client/cifsfs.h fs/smb/client/cifsproto.h +2 more+34 -220 replies
4/4fs: retire sget()fs/btrfs/super.c fs/super.c include/linux/fs.h+6 -711 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/4R-b
2/4R-b
3/4
4/4R-b

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 0/4] super: retire sget()

CIFS plus the two ext4 KUnit tests (extents-test, mballoc-test) were the last in-tree callers, and all three convert cleanly to sget_fc(). That lets sget() and its prototype come out, taking ~60 lines that only existed to be kept in lockstep with sget_fc() on every publish-path change.

---
Changes in v2:
- Move some changes into a separate series.
- Link to v1: https://patch.msgid.link/[email protected]

---
Christian Brauner (4):
ext4: convert extents KUnit test to sget_fc()
ext4: convert mballoc KUnit test to sget_fc()
smb: client: convert cifs_smb3_do_mount() to sget_fc()
fs: retire sget()

 fs/btrfs/super.c           |  2 +-
 fs/ext4/extents-test.c     | 22 +++++++++++---
 fs/ext4/mballoc-test.c     | 17 +++++++++--
 fs/smb/client/cifsfs.c     | 43 +++++++++++++++++-----------
 fs/smb/client/cifsfs.h     |  3 +-
 fs/smb/client/cifsproto.h  |  3 +-
 fs/smb/client/connect.c    |  5 ++--
 fs/smb/client/fs_context.c |  2 +-
 fs/super.c                 | 71 ++++------------------------------------------
 include/linux/fs.h         |  4 ---
 10 files changed, 73 insertions(+), 99 deletions(-)

---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260526-work-sget-6bc80b96cba5