summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-20 21:04:11 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-21 20:00:16 -0400
commita9943d11c1e07c3f8cc6438c2700179971c4056f (patch)
tree91c7f666ad175150e99033c2eba53accc41d76e6 /fs/nfs
parent5948a401a7f06d67f8548651041e00fd1aafcaf9 (diff)
downloadop-kernel-dev-a9943d11c1e07c3f8cc6438c2700179971c4056f.zip
op-kernel-dev-a9943d11c1e07c3f8cc6438c2700179971c4056f.tar.gz
NFSv3: Deal with a sparse warning in nfs3_proc_create
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs3proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c
index f5c84c3..1db588a 100644
--- a/fs/nfs/nfs3proc.c
+++ b/fs/nfs/nfs3proc.c
@@ -336,8 +336,8 @@ nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
data->arg.create.createmode = NFS3_CREATE_UNCHECKED;
if (flags & O_EXCL) {
data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE;
- data->arg.create.verifier[0] = jiffies;
- data->arg.create.verifier[1] = current->pid;
+ data->arg.create.verifier[0] = cpu_to_be32(jiffies);
+ data->arg.create.verifier[1] = cpu_to_be32(current->pid);
}
sattr->ia_mode &= ~current_umask();
OpenPOWER on IntegriCloud