diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2010-10-20 15:44:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-23 15:27:33 -0400 |
commit | babddc72a9468884ce1a23db3c3d54b0afa299f0 (patch) | |
tree | b176e5795b47c73c47543acdc546da0c38619ddc /include/linux | |
parent | ba8e452a4fe64a51b74d43761e14d99f0666cc45 (diff) |
NFS: decode_dirent should use an xdr_stream
Convert nfs*xdr.c to use an xdr stream in decode_dirent. This will prevent a
kernel oops that has been occuring when reading a vmapped page.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfs_xdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 5772b2c2f063..ca0e8fd7feec 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h | |||
@@ -1036,7 +1036,7 @@ struct nfs_rpc_ops { | |||
1036 | int (*pathconf) (struct nfs_server *, struct nfs_fh *, | 1036 | int (*pathconf) (struct nfs_server *, struct nfs_fh *, |
1037 | struct nfs_pathconf *); | 1037 | struct nfs_pathconf *); |
1038 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); | 1038 | int (*set_capabilities)(struct nfs_server *, struct nfs_fh *); |
1039 | __be32 *(*decode_dirent)(__be32 *, struct nfs_entry *, int plus); | 1039 | __be32 *(*decode_dirent)(struct xdr_stream *, struct nfs_entry *, int plus); |
1040 | void (*read_setup) (struct nfs_read_data *, struct rpc_message *); | 1040 | void (*read_setup) (struct nfs_read_data *, struct rpc_message *); |
1041 | int (*read_done) (struct rpc_task *, struct nfs_read_data *); | 1041 | int (*read_done) (struct rpc_task *, struct nfs_read_data *); |
1042 | void (*write_setup) (struct nfs_write_data *, struct rpc_message *); | 1042 | void (*write_setup) (struct nfs_write_data *, struct rpc_message *); |