vfs: make freeze_super abort when sync_filesystem returns error
authorDarrick J. Wong <djwong@kernel.org>
Sun, 30 Jan 2022 16:53:16 +0000 (08:53 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 30 Jan 2022 16:59:47 +0000 (08:59 -0800)
commit2719c7160dcfaae1f73a1c0c210ad3281c19022e
tree56157d7edd48094e09dc3c56337a3472b85762e7
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
vfs: make freeze_super abort when sync_filesystem returns error

If we fail to synchronize the filesystem while preparing to freeze the
fs, abort the freeze.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner <brauner@kernel.org>
fs/super.c