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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:05 +0000 (12:03 +0100)
commit38f22c730c382b90ee20b5a0a6082dbf2643acf4
tree36a4829bf4c5cce6b3753f092809af114833b1c4
parent5d3e1af11e072c8b1bd2b96549afb7b6a16c0ca4
vfs: make freeze_super abort when sync_filesystem returns error

[ Upstream commit 2719c7160dcfaae1f73a1c0c210ad3281c19022e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/super.c