Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61616
b: refs/heads/master
c: 38c2e43
h: refs/heads/master
v: v3
  • Loading branch information
Jan Harkes authored and Linus Torvalds committed Jul 19, 2007
1 parent b7bdd25 commit f8cf0a0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 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: 18991197b4b588255ccabf472ebc84db7b66a19c
refs/heads/master: 38c2e4370da495813ca93d7cad31ed5090e8c310
7 changes: 5 additions & 2 deletions trunk/fs/coda/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,11 @@ int coda_open(struct inode *coda_inode, struct file *coda_file)
lock_kernel();

error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags,
&host_file);
if (error || !host_file) {
&host_file);
if (!host_file)
error = -EIO;

if (error) {
kfree(cfi);
unlock_kernel();
return error;
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/coda/psdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf,
if (req->uc_opcode == CODA_OPEN_BY_FD) {
struct coda_open_by_fd_out *outp =
(struct coda_open_by_fd_out *)req->uc_data;
outp->fh = fget(outp->fd);
if (!outp->oh.result)
outp->fh = fget(outp->fd);
}

wake_up(&req->uc_sleep);
Expand Down
10 changes: 5 additions & 5 deletions trunk/fs/coda/upcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ int venus_open(struct super_block *sb, struct CodaFid *fid,
insize = SIZE(open_by_fd);
UPARG(CODA_OPEN_BY_FD);

inp->coda_open.VFid = *fid;
inp->coda_open.flags = flags;
inp->coda_open_by_fd.VFid = *fid;
inp->coda_open_by_fd.flags = flags;

error = coda_upcall(coda_sbp(sb), insize, &outsize, inp);

*fh = outp->coda_open_by_fd.fh;
error = coda_upcall(coda_sbp(sb), insize, &outsize, inp);
if (!error)
*fh = outp->coda_open_by_fd.fh;

CODA_FREE(inp, insize);
return error;
Expand Down

0 comments on commit f8cf0a0

Please sign in to comment.