aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 8abbf0532ea1..95d1e2695c3a 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -1406,7 +1406,9 @@ xfs_end_io_direct(
1406 struct kiocb *iocb, 1406 struct kiocb *iocb,
1407 loff_t offset, 1407 loff_t offset,
1408 ssize_t size, 1408 ssize_t size,
1409 void *private) 1409 void *private,
1410 int ret,
1411 bool is_async)
1410{ 1412{
1411 xfs_ioend_t *ioend = iocb->private; 1413 xfs_ioend_t *ioend = iocb->private;
1412 1414
@@ -1452,6 +1454,9 @@ xfs_end_io_direct(
1452 * against double-freeing. 1454 * against double-freeing.
1453 */ 1455 */
1454 iocb->private = NULL; 1456 iocb->private = NULL;
1457
1458 if (is_async)
1459 aio_complete(iocb, ret, 0);
1455} 1460}
1456 1461
1457STATIC ssize_t 1462STATIC ssize_t