diff options
author | Jan Beulich <JBeulich@novell.com> | 2010-10-26 17:22:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:13 -0400 |
commit | 3ecb01df3261d3b1f02ccfcf8384e2a255d2a1d0 (patch) | |
tree | 1fe91114d8829a511db48d757c787cfede3b929c /fs/fuse | |
parent | b6472776816af1ed52848c93d26e3edb3b17adab (diff) |
use clear_page()/copy_page() in favor of memset()/memcpy() on whole pages
After all that's what they are intended for.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index cde755cca564..69037118b2c9 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -811,7 +811,7 @@ static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep, | |||
811 | 811 | ||
812 | if (page && zeroing && count < PAGE_SIZE) { | 812 | if (page && zeroing && count < PAGE_SIZE) { |
813 | void *mapaddr = kmap_atomic(page, KM_USER1); | 813 | void *mapaddr = kmap_atomic(page, KM_USER1); |
814 | memset(mapaddr, 0, PAGE_SIZE); | 814 | clear_page(mapaddr); |
815 | kunmap_atomic(mapaddr, KM_USER1); | 815 | kunmap_atomic(mapaddr, KM_USER1); |
816 | } | 816 | } |
817 | while (count) { | 817 | while (count) { |