mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
[XFS] handle error returns from freeze_bdev
SGI-PV: 945483 SGI-Modid: xfs-linux-melb:xfs-kern:201884a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
This commit is contained in:
parent
55b02d74e1
commit
f33c6797bc
@ -550,7 +550,7 @@ xfs_fs_goingdown(
|
||||
struct vfs *vfsp = XFS_MTOVFS(mp);
|
||||
struct super_block *sb = freeze_bdev(vfsp->vfs_super->s_bdev);
|
||||
|
||||
if (sb) {
|
||||
if (sb && !IS_ERR(sb)) {
|
||||
xfs_force_shutdown(mp, XFS_FORCE_UMOUNT);
|
||||
thaw_bdev(sb->s_bdev, sb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user