diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-06-15 17:59:10 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-12 19:40:29 +0200 |
commit | a56aaa02b1f723e28b41d339ddff02e958d32d43 (patch) | |
tree | 3e24ad69ceb5ee66e53baec133ef7bb950795c54 /include | |
parent | pnfs-obj: pnfs_osd_xdr: Remove dead code and cleanup (diff) | |
download | linux-a56aaa02b1f723e28b41d339ddff02e958d32d43.tar.xz linux-a56aaa02b1f723e28b41d339ddff02e958d32d43.zip |
NFSv4.1: Clean up layoutreturn
Since we take a reference to it, we really ought to pass the a pointer to
the layout header in the arguments instead of assuming that
NFS_I(inode)->layout will forever point to the correct object.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_xdr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 209455561749..956d3576df7f 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -269,9 +269,10 @@ struct nfs4_layoutcommit_data { }; struct nfs4_layoutreturn_args { - __u32 layout_type; + struct pnfs_layout_hdr *layout; struct inode *inode; nfs4_stateid stateid; + __u32 layout_type; struct nfs4_sequence_args seq_args; }; |