aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2023-08-09 15:05:34 -0700
committerGravatar Christian Brauner <brauner@kernel.org> 2023-08-10 10:34:54 +0200
commit1aa2d074d4c777e2150382878d0a5611d829b380 (patch)
tree6cc296c6941421ac673f8315bd4b17d73ff91b54 /fs/xfs/xfs_super.c
parentxfs: reformat the xfs_fs_free prototype (diff)
downloadlinux-1aa2d074d4c777e2150382878d0a5611d829b380.tar.gz
linux-1aa2d074d4c777e2150382878d0a5611d829b380.tar.bz2
linux-1aa2d074d4c777e2150382878d0a5611d829b380.zip
xfs: remove a superfluous s_fs_info NULL check in xfs_fs_put_super
->put_super is only called when sb->s_root is set, and thus when fill_super succeeds. Thus drop the NULL check that can't happen in xfs_fs_put_super. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christian Brauner <brauner@kernel.org> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Message-Id: <20230809220545.1308228-3-hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 79c1dd9435c2..e621e0da87f3 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1133,10 +1133,6 @@ xfs_fs_put_super(
{
struct xfs_mount *mp = XFS_M(sb);
- /* if ->fill_super failed, we have no mount to tear down */
- if (!sb->s_fs_info)
- return;
-
xfs_notice(mp, "Unmounting Filesystem %pU", &mp->m_sb.sb_uuid);
xfs_filestream_unmount(mp);
xfs_unmountfs(mp);