Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40817
b: refs/heads/master
c: af85852
h: refs/heads/master
i:
  40815: ef2864c
v: v3
  • Loading branch information
J. Bruce Fields authored and Linus Torvalds committed Nov 9, 2006
1 parent ee737c0 commit 02ac7d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75b2bd55bd7724c727856fbdf3ab71d2e4287ac8
refs/heads/master: af85852de0b32d92b14295aa6f5ba3a9ad044cf6
24 changes: 11 additions & 13 deletions trunk/fs/nfsd/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,27 +106,25 @@ do_open_lookup(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_o
open->op_fname.len, &open->op_iattr,
&resfh, open->op_createmode,
(u32 *)open->op_verf.data, &open->op_truncate);
}
else {
} else {
status = nfsd_lookup(rqstp, current_fh,
open->op_fname.data, open->op_fname.len, &resfh);
fh_unlock(current_fh);
}
if (status)
goto out;

if (!status) {
set_change_info(&open->op_cinfo, current_fh);
set_change_info(&open->op_cinfo, current_fh);

/* set reply cache */
fh_dup2(current_fh, &resfh);
open->op_stateowner->so_replay.rp_openfh_len =
resfh.fh_handle.fh_size;
memcpy(open->op_stateowner->so_replay.rp_openfh,
&resfh.fh_handle.fh_base,
resfh.fh_handle.fh_size);
/* set reply cache */
fh_dup2(current_fh, &resfh);
open->op_stateowner->so_replay.rp_openfh_len = resfh.fh_handle.fh_size;
memcpy(open->op_stateowner->so_replay.rp_openfh,
&resfh.fh_handle.fh_base, resfh.fh_handle.fh_size);

status = do_open_permission(rqstp, current_fh, open, MAY_NOP);
}
status = do_open_permission(rqstp, current_fh, open, MAY_NOP);

out:
fh_put(&resfh);
return status;
}
Expand Down

0 comments on commit 02ac7d4

Please sign in to comment.