Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373784
b: refs/heads/master
c: 187c5c3
h: refs/heads/master
v: v3
  • Loading branch information
Maxim Patlasov authored and Miklos Szeredi committed Apr 17, 2013
1 parent dad1f63 commit b5017ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 3c18ef8117f0515b1e455713dfc2e18b06db9bb5
refs/heads/master: 187c5c36330bc8d15674d9e6d2a2412de6b1034d
24 changes: 12 additions & 12 deletions trunk/fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,18 @@ void fuse_read_fill(struct fuse_req *req, struct file *file, loff_t pos,
req->out.args[0].size = count;
}

static void fuse_release_user_pages(struct fuse_req *req, int write)
{
unsigned i;

for (i = 0; i < req->num_pages; i++) {
struct page *page = req->pages[i];
if (write)
set_page_dirty_lock(page);
put_page(page);
}
}

static size_t fuse_send_read(struct fuse_req *req, struct file *file,
loff_t pos, size_t count, fl_owner_t owner)
{
Expand Down Expand Up @@ -1046,18 +1058,6 @@ static ssize_t fuse_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
return written ? written : err;
}

static void fuse_release_user_pages(struct fuse_req *req, int write)
{
unsigned i;

for (i = 0; i < req->num_pages; i++) {
struct page *page = req->pages[i];
if (write)
set_page_dirty_lock(page);
put_page(page);
}
}

static inline void fuse_page_descs_length_init(struct fuse_req *req,
unsigned index, unsigned nr_pages)
{
Expand Down

0 comments on commit b5017ac

Please sign in to comment.