===================================================================
@@ -75,8 +75,6 @@
static int fileio_sync(struct iet_volume *lu, struct tio *tio)
{
struct fileio_data *p = lu->private;
- struct inode *inode = p->filp->f_dentry->d_inode;
- struct address_space *mapping = inode->i_mapping;
loff_t ppos, count;
int res;
@@ -88,7 +86,7 @@
count = lu->blk_cnt << lu->blk_shift;
}
- res = sync_page_range(inode, mapping, ppos, count);
+ res = generic_write_sync(p->filp, ppos, count);
if (res) {
eprintk("I/O error: syncing pages failed: %d\n", res);
return -EIO;