projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01f2705
)
affs: use zero_user_page
author
Nate Diller
<
[email protected]
>
Wed, 9 May 2007 09:35:07 +0000
(
02:35
-0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 9 May 2007 19:30:55 +0000
(12:30 -0700)
Use zero_user_page() instead of open-coding it.
Signed-off-by: Nate Diller <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/affs/file.c
patch
|
blob
|
history
diff --git
a/fs/affs/file.c
b/fs/affs/file.c
index 4aa8079e71be8c7c9ffb7f92d88cd1ce852a38af..c8796906f584bdb2bffe406e186b4f17e6aa5c75 100644
(file)
--- a/
fs/affs/file.c
+++ b/
fs/affs/file.c
@@
-628,11
+628,7
@@
static int affs_prepare_write_ofs(struct file *file, struct page *page, unsigned
return err;
}
if (to < PAGE_CACHE_SIZE) {
- char *kaddr = kmap_atomic(page, KM_USER0);
-
- memset(kaddr + to, 0, PAGE_CACHE_SIZE - to);
- flush_dcache_page(page);
- kunmap_atomic(kaddr, KM_USER0);
+ zero_user_page(page, to, PAGE_CACHE_SIZE - to, KM_USER0);
if (size > offset + to) {
if (size < offset + PAGE_CACHE_SIZE)
tmp = size & ~PAGE_CACHE_MASK;