diff options
-rw-r--r-- | fs/xfs/xfs_aops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 4a13f5311a41..0c8dacea411e 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
@@ -214,10 +214,12 @@ xfs_end_io( | |||
214 | struct xfs_inode *ip = XFS_I(ioend->io_inode); | 214 | struct xfs_inode *ip = XFS_I(ioend->io_inode); |
215 | int error = 0; | 215 | int error = 0; |
216 | 216 | ||
217 | if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { | 217 | /* |
218 | * Set an error if the mount has shut down and proceed with end I/O | ||
219 | * processing so it can perform whatever cleanups are necessary. | ||
220 | */ | ||
221 | if (XFS_FORCED_SHUTDOWN(ip->i_mount)) | ||
218 | ioend->io_error = -EIO; | 222 | ioend->io_error = -EIO; |
219 | goto done; | ||
220 | } | ||
221 | 223 | ||
222 | /* | 224 | /* |
223 | * For unwritten extents we need to issue transactions to convert a | 225 | * For unwritten extents we need to issue transactions to convert a |