projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d93874
)
ext4: use memcpy_to_page() in pagecache_write()
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Sun, 7 Feb 2021 19:04:23 +0000
(11:04 -0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 25 Mar 2021 14:19:48 +0000
(10:19 -0400)
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link:
https://lore.kernel.org/r/20210207190425.38107-7-chaitanya.kulkarni@wdc.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/verity.c
patch
|
blob
|
history
diff --git
a/fs/ext4/verity.c
b/fs/ext4/verity.c
index daf88669a2e9ea1cf5ef31cb8ea803673feb0122..c6ed2aa9c534d9aa7041d575e69bb62f974284c0 100644
(file)
--- a/
fs/ext4/verity.c
+++ b/
fs/ext4/verity.c
@@
-77,7
+77,6
@@
static int pagecache_write(struct inode *inode, const void *buf, size_t count,
PAGE_SIZE - offset_in_page(pos));
struct page *page;
void *fsdata;
- void *addr;
int res;
res = pagecache_write_begin(NULL, inode->i_mapping, pos, n, 0,
@@
-85,9
+84,7
@@
static int pagecache_write(struct inode *inode, const void *buf, size_t count,
if (res)
return res;
- addr = kmap_atomic(page);
- memcpy(addr + offset_in_page(pos), buf, n);
- kunmap_atomic(addr);
+ memcpy_to_page(page, offset_in_page(pos), buf, n);
res = pagecache_write_end(NULL, inode->i_mapping, pos, n, n,
page, fsdata);