Merge branch 'pnfs-submit' of git://git.open-osd.org/linux-open-osd
[cascardo/linux.git] / fs / nfs / pnfs.c
index d79f2df..8c1309d 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);