[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>

authored by Christoph Hellwig and committed by Nathan Scott f33c6797 55b02d74

+1 -1
+1 -1
fs/xfs/xfs_fsops.c
··· 550 struct vfs *vfsp = XFS_MTOVFS(mp); 551 struct super_block *sb = freeze_bdev(vfsp->vfs_super->s_bdev); 552 553 - if (sb) { 554 xfs_force_shutdown(mp, XFS_FORCE_UMOUNT); 555 thaw_bdev(sb->s_bdev, sb); 556 }
··· 550 struct vfs *vfsp = XFS_MTOVFS(mp); 551 struct super_block *sb = freeze_bdev(vfsp->vfs_super->s_bdev); 552 553 + if (sb && !IS_ERR(sb)) { 554 xfs_force_shutdown(mp, XFS_FORCE_UMOUNT); 555 thaw_bdev(sb->s_bdev, sb); 556 }