Skip to content

Commit a9943d1

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFSv3: Deal with a sparse warning in nfs3_proc_create
Signed-off-by: Trond Myklebust <[email protected]>
1 parent 5948a40 commit a9943d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/nfs3proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ nfs3_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,
336336
data->arg.create.createmode = NFS3_CREATE_UNCHECKED;
337337
if (flags & O_EXCL) {
338338
data->arg.create.createmode = NFS3_CREATE_EXCLUSIVE;
339-
data->arg.create.verifier[0] = jiffies;
340-
data->arg.create.verifier[1] = current->pid;
339+
data->arg.create.verifier[0] = cpu_to_be32(jiffies);
340+
data->arg.create.verifier[1] = cpu_to_be32(current->pid);
341341
}
342342

343343
sattr->ia_mode &= ~current_umask();

0 commit comments

Comments
 (0)