super: remove pointless s_root checks
authorChristian Brauner <brauner@kernel.org>
Sat, 29 Mar 2025 08:42:14 +0000 (09:42 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 7 Apr 2025 07:37:16 +0000 (09:37 +0200)
commitaf7551cf13cf7fb1d4f939db4f1f24c00550ed57
tree7cbb84608c5816495be7c95cba2af0635d902e54
parentf73bae83675b860cae9f58dba233b6be92e750ca
super: remove pointless s_root checks

The locking guarantees that the superblock is alive and sb->s_root is
still set. Remove the pointless check.

Link: https://lore.kernel.org/r/20250329-work-freeze-v2-1-a47af37ecc3d@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/super.c