NFSv3: Deal with a sparse warning in nfs3_proc_create
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 21 Aug 2013 01:04:11 +0000 (21:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 22 Aug 2013 00:00:16 +0000 (20:00 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs3proc.c

index f5c84c3efbca24df1ee53947a86dfe28c992cf46..1db588a3f08b28c93bb491d354662c346ccee3fc 100644 (file)
@@ -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();