[dm-devel] [dm:for-next 30/32] drivers/md/dm-bio-record.h:45:7: error: 'struct bio' has no member named 'bi_integrity'; did you mean 'bi_iter'?

2020-02-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next head: 8a71e3cd0499fd9bfe1a99cda6a62fe83f80d622 commit: 6e18585702772969431c269438cb828a5e3d9db6 [30/32] dm bio record: save/restore bi_integrity and bi_end_io config: x86_64-defconfig (attached as .conf

[dm-devel] [PATCH v6 0/6] dax/pmem: Provide a dax operation to zero page range

2020-02-28 Thread Vivek Goyal
Hi, This is V6 of patches. These patches are also available at. Changes since V5: - Dan Williams preferred ->zero_page_range() to only accept PAGE_SIZE aligned request and clear poison only on page size aligned zeroing. So I changed it accordingly. - Dropped all the modifications which wer

[dm-devel] [PATCH v6 4/6] dm, dax: Add dax zero_page_range operation

2020-02-28 Thread Vivek Goyal
This patch adds support for dax zero_page_range operation to dm targets. Signed-off-by: Vivek Goyal --- drivers/md/dm-linear.c| 18 ++ drivers/md/dm-log-writes.c| 17 + drivers/md/dm-stripe.c| 23 +++ drivers/md/dm.c

[dm-devel] [PATCH v6 6/6] dax, iomap: Add helper dax_iomap_zero() to zero a range

2020-02-28 Thread Vivek Goyal
Add a helper dax_ioamp_zero() to zero a range. This patch basically merges __dax_zero_page_range() and iomap_dax_zero(). Suggested-by: Christoph Hellwig Reviewed-by: Christoph Hellwig Signed-off-by: Vivek Goyal --- fs/dax.c | 16 fs/iomap/buffered-io.c | 9 +

[dm-devel] [PATCH v6 3/6] s390, dcssblk, dax: Add dax zero_page_range operation to dcssblk driver

2020-02-28 Thread Vivek Goyal
Add dax operation zero_page_range for dcssblk driver. CC: linux-s...@vger.kernel.org Suggested-by: Christoph Hellwig Reviewed-by: Gerald Schaefer Signed-off-by: Vivek Goyal --- drivers/s390/block/dcssblk.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/s390/block/

[dm-devel] [PATCH v6 5/6] dax: Use new dax zero page method for zeroing a page

2020-02-28 Thread Vivek Goyal
Use new dax native zero page method for zeroing page if I/O is page aligned. Otherwise fall back to direct_access() + memcpy(). This gets rid of one of the depenendency on block device in dax path. Signed-off-by: Vivek Goyal --- fs/dax.c | 53 +++-

[dm-devel] [PATCH v6 2/6] dax, pmem: Add a dax operation zero_page_range

2020-02-28 Thread Vivek Goyal
Add a dax operation zero_page_range, to zero a page. This will also clear any known poison in the page being zeroed. As of now, zeroing of one page is allowed in a single call. There are no callers which are trying to zero more than a page in a single call. Once we grow the callers which zero more

[dm-devel] [PATCH v6 1/6] pmem: Add functions for reading/writing page to/from pmem

2020-02-28 Thread Vivek Goyal
This splits pmem_do_bvec() into pmem_do_read() and pmem_do_write(). pmem_do_write() will be used by pmem zero_page_range() as well. Hence sharing the same code. Suggested-by: Christoph Hellwig Reviewed-by: Christoph Hellwig Signed-off-by: Vivek Goyal --- drivers/nvdimm/pmem.c | 86

Re: [dm-devel] [PATCH v5 2/8] drivers/pmem: Allow pmem_clear_poison() to accept arbitrary offset and len

2020-02-28 Thread Dan Williams
On Fri, Feb 28, 2020 at 6:05 AM Christoph Hellwig wrote: > > On Thu, Feb 27, 2020 at 07:28:41PM -0800, Dan Williams wrote: > > "don't perform generic memory-error-handling, there's an fs that owns > > this daxdev and wants to disposition errors". The fs/dax.c > > infrastructure that sets up ->inde

Re: [dm-devel] [PATCH v5 2/8] drivers/pmem: Allow pmem_clear_poison() to accept arbitrary offset and len

2020-02-28 Thread Christoph Hellwig
On Thu, Feb 27, 2020 at 07:28:41PM -0800, Dan Williams wrote: > "don't perform generic memory-error-handling, there's an fs that owns > this daxdev and wants to disposition errors". The fs/dax.c > infrastructure that sets up ->index and ->mapping would still need to > be there for ext4 until its re