super: use higher-level helper for {freeze,thaw}

It's not necessary to use low-level locking helpers here. Use the
higher-level locking helpers and log if the superblock is dying. Since
the caller is assumed to already hold an active reference it isn't
possible to observe a dying superblock.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2023-08-22 13:32:50 +02:00
commit 051178c366
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2