Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217515
b: refs/heads/master
c: b6777c4
h: refs/heads/master
i:
  217513: b349c00
  217511: 2a05f4b
v: v3
  • Loading branch information
Miklos Szeredi authored and Linus Torvalds committed Oct 26, 2010
1 parent 16b6d88 commit d1ca78c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 3ecb01df3261d3b1f02ccfcf8384e2a255d2a1d0
refs/heads/master: b6777c40c79168d938c30b5b7471fbd64bca109c
12 changes: 5 additions & 7 deletions trunk/fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,9 @@ static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep,
int err;
struct page *page = *pagep;

if (page && zeroing && count < PAGE_SIZE) {
void *mapaddr = kmap_atomic(page, KM_USER1);
clear_page(mapaddr);
kunmap_atomic(mapaddr, KM_USER1);
}
if (page && zeroing && count < PAGE_SIZE)
clear_highpage(page);

while (count) {
if (cs->write && cs->pipebufs && page) {
return fuse_ref_page(cs, page, offset, count);
Expand All @@ -830,10 +828,10 @@ static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep,
}
}
if (page) {
void *mapaddr = kmap_atomic(page, KM_USER1);
void *mapaddr = kmap_atomic(page, KM_USER0);
void *buf = mapaddr + offset;
offset += fuse_copy_do(cs, &buf, &count);
kunmap_atomic(mapaddr, KM_USER1);
kunmap_atomic(mapaddr, KM_USER0);
} else
offset += fuse_copy_do(cs, NULL, &count);
}
Expand Down

0 comments on commit d1ca78c

Please sign in to comment.