diff options
| -rw-r--r-- | fs/xfs/xfs_aops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 63e971e2b837..8c37dde4c521 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
| @@ -1300,6 +1300,7 @@ xfs_end_io_direct_write( | |||
| 1300 | bool is_async) | 1300 | bool is_async) |
| 1301 | { | 1301 | { |
| 1302 | struct xfs_ioend *ioend = iocb->private; | 1302 | struct xfs_ioend *ioend = iocb->private; |
| 1303 | struct inode *inode = ioend->io_inode; | ||
| 1303 | 1304 | ||
| 1304 | /* | 1305 | /* |
| 1305 | * blockdev_direct_IO can return an error even after the I/O | 1306 | * blockdev_direct_IO can return an error even after the I/O |
| @@ -1331,7 +1332,7 @@ xfs_end_io_direct_write( | |||
| 1331 | } | 1332 | } |
| 1332 | 1333 | ||
| 1333 | /* XXX: probably should move into the real I/O completion handler */ | 1334 | /* XXX: probably should move into the real I/O completion handler */ |
| 1334 | inode_dio_done(ioend->io_inode); | 1335 | inode_dio_done(inode); |
| 1335 | } | 1336 | } |
| 1336 | 1337 | ||
| 1337 | STATIC ssize_t | 1338 | STATIC ssize_t |
