]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: don't take m_sb_lock in xfs_fs_statfs
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 04:32:58 +0000 (05:32 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 13 Jan 2025 13:56:24 +0000 (14:56 +0100)
commit72843ca62417a0587ca98791b172e4c3b3f8d3a8
treef424471a3f9aaabe517b2ec277f4919adbf7f748
parentf4752daf472b52a376f38243436c67b188a5eddf
xfs: don't take m_sb_lock in xfs_fs_statfs

The only non-constant value read under m_sb_lock in xfs_fs_statfs is
sb_dblocks, and it could become stale right after dropping the lock
anyway.  Remove the thus pointless lock section.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_super.c