Merge branch 'pnfs-submit' of git://git.open-osd.org/linux-open-osd
[linux-2.6-block.git] / fs / nfs / pnfs.c
index d79f2df33a46466ef83652c12dcc5e18b3e74ab2..8c1309d852a6f4709a53c4fb6e7470371aaf1ea8 100644 (file)
@@ -1193,7 +1193,7 @@ void
 pnfs_set_layoutcommit(struct nfs_write_data *wdata)
 {
        struct nfs_inode *nfsi = NFS_I(wdata->inode);
-       loff_t end_pos = wdata->args.offset + wdata->res.count;
+       loff_t end_pos = wdata->mds_offset + wdata->res.count;
        bool mark_as_dirty = false;
 
        spin_lock(&nfsi->vfs_inode.i_lock);