diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 7 |
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 34640d6dbdcb..5895aaf62ace 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -1599,7 +1599,9 @@ xfs_end_io_direct( | |||
1599 | struct kiocb *iocb, | 1599 | struct kiocb *iocb, |
1600 | loff_t offset, | 1600 | loff_t offset, |
1601 | ssize_t size, | 1601 | ssize_t size, |
1602 | void *private) | 1602 | void *private, |
1603 | int ret, | ||
1604 | bool is_async) | ||
1603 | { | 1605 | { |
1604 | xfs_ioend_t *ioend = iocb->private; | 1606 | xfs_ioend_t *ioend = iocb->private; |
1605 | 1607 | ||
@@ -1645,6 +1647,9 @@ xfs_end_io_direct( | |||
1645 | * against double-freeing. | 1647 | * against double-freeing. |
1646 | */ | 1648 | */ |
1647 | iocb->private = NULL; | 1649 | iocb->private = NULL; |
1650 | |||
1651 | if (is_async) | ||
1652 | aio_complete(iocb, ret, 0); | ||
1648 | } | 1653 | } |
1649 | 1654 | ||
1650 | STATIC ssize_t | 1655 | STATIC ssize_t |