]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: retire sget()
authorChristian Brauner <brauner@kernel.org>
Fri, 29 May 2026 08:43:43 +0000 (10:43 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 3 Jun 2026 07:09:51 +0000 (09:09 +0200)
commit12863b36bfe4ac0aa93e984c72b2bcd8f08402aa
tree37be5f9bb1ff8b7b96cb3aba1a540f6bd05f0353
parentb50d895dfde2bd7a5a14b444e2c6921256fdb54b
fs: retire sget()

sget() and sget_fc() have lived side by side as near-duplicate
find-or-create-and-publish helpers for the legacy and fs_context mount
APIs. The three remaining in-tree callers (CIFS plus the ext4 extents
and mballoc KUnit tests) have all been moved to sget_fc(). Nothing
calls sget() anymore.

Delete sget() from fs/super.c and the prototype in <linux/fs.h>.
Update the two comments that referred to "sget()" or "sget{_fc}()" to
just say "sget_fc()".

This removes ~60 lines of code that only existed to be kept in
lockstep with sget_fc() on every superblock publish-path change.

Link: https://patch.msgid.link/20260529-work-sget-v2-4-57bbe08604e4@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/btrfs/super.c
fs/super.c
include/linux/fs.h