Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23913
b: refs/heads/master
c: a37ec01
h: refs/heads/master
i:
  23911: 21b5927
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Mar 20, 2006
1 parent f9381fe commit 4943b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15ce4a0c1ce0d5e288398cb9e5493fd4e55e2025
refs/heads/master: a37ec012d7fd352648c8455d3396ea24001efcd3
3 changes: 3 additions & 0 deletions trunk/fs/nfs/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static void nfs_direct_complete(struct nfs_direct_req *dreq)
} else
wake_up(&dreq->wait);

iput(dreq->inode);
kref_put(&dreq->kref, nfs_direct_req_release);
}

Expand Down Expand Up @@ -374,6 +375,7 @@ static ssize_t nfs_direct_read(struct kiocb *iocb, unsigned long user_addr, size

dreq->pages = pages;
dreq->npages = nr_pages;
igrab(inode);
dreq->inode = inode;
dreq->filp = iocb->ki_filp;
if (!is_sync_kiocb(iocb))
Expand Down Expand Up @@ -549,6 +551,7 @@ static ssize_t nfs_direct_write(struct kiocb *iocb, unsigned long user_addr, siz

dreq->pages = pages;
dreq->npages = nr_pages;
igrab(inode);
dreq->inode = inode;
dreq->filp = iocb->ki_filp;
if (!is_sync_kiocb(iocb))
Expand Down

0 comments on commit 4943b89

Please sign in to comment.