This RFC is based on the discussion going on the linux-fsdevel [1].
I've tested this on the brd and null_blk. The fio verify job seems to
run without any error on the top of the original series applied [1].
Any feedback is welcome to move this forward.
-ck
[1] https://lore.kernel.org/linux-fsdevel/20210205232304.1670522-1-ira.weiny@intel.com/T/#m53145c155fa3631595594877da96a3a75b71e909
Chaitanya Kulkarni (8):
brd: use memcpy_from_page() in copy_from_brd()
brd: use memcpy_from_page() in copy_from_brd()
null_blk: use memcpy_page() in copy_to_nullb()
null_blk: use memcpy_page() in copy_from_nullb()
ext4: use memcpy_from_page() in pagecache_read()
ext4: use memcpy_to_page() in pagecache_write()
f2fs: use memcpy_from_page() in pagecache_read()
f2fs: use memcpy_to_page() in pagecache_write()
drivers/block/brd.c | 17 ++++++-----------
drivers/block/null_blk/main.c | 23 ++++++-----------------
fs/ext4/verity.c | 10 ++--------
fs/f2fs/verity.c | 10 ++--------
4 files changed, 16 insertions(+), 44 deletions(-)
--
2.22.1
Chaitanya Kulkarni (8):
brd: use memcpy_from_page() in copy_from_brd()
brd: use memcpy_from_page() in copy_from_brd()
I'm aware that couple of places in brd code we can use memcpy_to_page()
and get rid the local variable, once I get some feedback I'll add those
to the V1.
From: Ira Weiny <hidden> Date: 2021-02-08 04:42:53
On Sun, Feb 07, 2021 at 07:10:41PM +0000, Chaitanya Kulkarni wrote:
On 2/7/21 11:04, Chaitanya Kulkarni wrote:
quoted
Chaitanya Kulkarni (8):
brd: use memcpy_from_page() in copy_from_brd()
brd: use memcpy_from_page() in copy_from_brd()
I'm aware that couple of places in brd code we can use memcpy_to_page()
and get rid the local variable, once I get some feedback I'll add those
to the V1.
Except for the one comment I had this series look's good to me.
Reviewed-by: Ira Weiny <redacted>
Thanks!
Ira
On Sun, Feb 07, 2021 at 07:10:41PM +0000, Chaitanya Kulkarni wrote:
quoted
On 2/7/21 11:04, Chaitanya Kulkarni wrote:
quoted
Chaitanya Kulkarni (8):
brd: use memcpy_from_page() in copy_from_brd()
brd: use memcpy_from_page() in copy_from_brd()
I'm aware that couple of places in brd code we can use memcpy_to_page()
and get rid the local variable, once I get some feedback I'll add those
to the V1.
Except for the one comment I had this series look's good to me.
Reviewed-by: Ira Weiny <redacted>
Thanks!
Ira
Thanks Ira, I'll add your fix in the V1 and send with your review-by tag,
when this code is upstream.
Thanks a lot for doing this we can get rid of go in null_blk which makes
code smooth.
From: Eric Biggers <ebiggers@kernel.org> Date: 2021-02-10 18:05:29
On Sun, Feb 07, 2021 at 11:04:25AM -0800, Chaitanya Kulkarni wrote:
Signed-off-by: Chaitanya Kulkarni <redacted>
No explanation in commit message? There isn't much explanation needed for this,
but there should be at least one sentence.
Likewise for the other patches.
This is missing a comma between 'offset_in_page(pos)' and 'buf'.
Otherwise the patches to fs/{ext4,f2fs}/verity.c look fine; thanks for doing
this!
- Eric
On Sun, Feb 07, 2021 at 11:04:25AM -0800, Chaitanya Kulkarni wrote:
quoted
Signed-off-by: Chaitanya Kulkarni <redacted>
No explanation in commit message? There isn't much explanation needed for this,
but there should be at least one sentence.
Likewise for the other patches.
Thanks Eric for your comment.
Sent out minimal RFC, I'll add detail explanation also having original
series
in the tree helps.
Hi, were you expecting to have file system maintainers take these
patches into their own trees? The ext4 patches look good, and unless
you have any objections, I can take them through the ext4 tree.
Thanks,
- Ted
Hi, were you expecting to have file system maintainers take these
patches into their own trees? The ext4 patches look good, and unless
you have any objections, I can take them through the ext4 tree.
I think going through the ext4 tree would be fine.
However, there was a fix needed in patch 2/8. Chaitanya was a V1 sent?
Ira
Hi, were you expecting to have file system maintainers take these
patches into their own trees? The ext4 patches look good, and unless
you have any objections, I can take them through the ext4 tree.