]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: massage locking helpers
authorChristian Brauner <brauner@kernel.org>
Tue, 24 Oct 2023 13:01:07 +0000 (15:01 +0200)
committerChristian Brauner <brauner@kernel.org>
Sat, 18 Nov 2023 13:59:22 +0000 (14:59 +0100)
commitf0cd988016f679f489f0ca8498c300eaff370b28
treec1c58c58edd6c05b39cf8c3e12dd7f60e1fc1846
parentb85ea95d086471afb4ad062012a4d73cd328fa86
fs: massage locking helpers

Multiple people have balked at the the fact that
super_lock{_shared,_excluse}() return booleans and even if they return
false hold s_umount. So let's change them to only hold s_umount when
true is returned and change the code accordingly.

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