From 94915fef859be660ba310e6f5881085faef808d3 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 23 Jun 2005 22:00:59 -0700 Subject: [PATCH] --- yaml --- r: 3036 b: refs/heads/master c: 92198f7eaa5df3479341dd8fa20c2c81aa3b1e25 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/direct-io.c | 2 +- trunk/fs/xfs/linux-2.6/xfs_aops.c | 3 ++- trunk/include/linux/fs.h | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 5a125b707f06..0370cf033511 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16c29b67fb3bbacfc2a71f9e5f7d85728ef45efa +refs/heads/master: 92198f7eaa5df3479341dd8fa20c2c81aa3b1e25 diff --git a/trunk/fs/direct-io.c b/trunk/fs/direct-io.c index 1d55e7e67342..0d06097bc995 100644 --- a/trunk/fs/direct-io.c +++ b/trunk/fs/direct-io.c @@ -215,7 +215,7 @@ static struct page *dio_get_page(struct dio *dio) static void dio_complete(struct dio *dio, loff_t offset, ssize_t bytes) { if (dio->end_io && dio->result) - dio->end_io(dio->inode, offset, bytes, dio->map_bh.b_private); + dio->end_io(dio->iocb, offset, bytes, dio->map_bh.b_private); if (dio->lock_type == DIO_LOCKING) up_read(&dio->inode->i_alloc_sem); } diff --git a/trunk/fs/xfs/linux-2.6/xfs_aops.c b/trunk/fs/xfs/linux-2.6/xfs_aops.c index 93ce257cd149..a3a4b5aaf5d9 100644 --- a/trunk/fs/xfs/linux-2.6/xfs_aops.c +++ b/trunk/fs/xfs/linux-2.6/xfs_aops.c @@ -149,11 +149,12 @@ linvfs_unwritten_convert( */ STATIC void linvfs_unwritten_convert_direct( - struct inode *inode, + struct kiocb *iocb, loff_t offset, ssize_t size, void *private) { + struct inode *inode = iocb->ki_filp->f_dentry->d_inode; ASSERT(!private || inode == (struct inode *)private); /* private indicates an unwritten extent lay beneath this IO */ diff --git a/trunk/include/linux/fs.h b/trunk/include/linux/fs.h index 517bf4966bf5..83857d8070d3 100644 --- a/trunk/include/linux/fs.h +++ b/trunk/include/linux/fs.h @@ -220,6 +220,7 @@ extern int dir_notify_enable; struct iovec; struct nameidata; +struct kiocb; struct pipe_inode_info; struct poll_table_struct; struct kstatfs; @@ -240,7 +241,7 @@ typedef int (get_block_t)(struct inode *inode, sector_t iblock, typedef int (get_blocks_t)(struct inode *inode, sector_t iblock, unsigned long max_blocks, struct buffer_head *bh_result, int create); -typedef void (dio_iodone_t)(struct inode *inode, loff_t offset, +typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset, ssize_t bytes, void *private); /* @@ -302,7 +303,6 @@ struct iattr { struct page; struct address_space; struct writeback_control; -struct kiocb; struct address_space_operations { int (*writepage)(struct page *page, struct writeback_control *wbc);