Re: [PATCH v2] libnvdimm/region: Update nvdimm_has_flush() to handle ND_REGION_ASYNC

2021-04-06 Thread Vaibhav Jain
Hi Aneesh, Thanks for looking into this patch. "Aneesh Kumar K.V" writes: > Vaibhav Jain writes: > >> In case a platform doesn't provide explicit flush-hints but provides an >> explicit flush callback via ND_REGION_ASYNC region flag, then >> nvdimm_has_flush() still returns '0' indicating that

Re: [PATCH v2] libnvdimm/region: Update nvdimm_has_flush() to handle ND_REGION_ASYNC

2021-04-06 Thread Aneesh Kumar K.V
On 4/6/21 5:07 PM, Vaibhav Jain wrote: Hi Aneesh, Thanks for looking into this patch. "Aneesh Kumar K.V" writes: Vaibhav Jain writes: In case a platform doesn't provide explicit flush-hints but provides an explicit flush callback via ND_REGION_ASYNC region flag, then nvdimm_has_flush() sti

linux-nvdimm:如何做好领导的左膀右臂和参谋助手333

2021-04-06 Thread 陈主任
附 件 亲 启 ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH 2/4] test: Don't skip tests if nfit modules are missing

2021-04-06 Thread Santosh Sivaraj
"Aneesh Kumar K.V" writes: > Santosh Sivaraj writes: > >> For NFIT to be available ACPI is a must, so don't fail when nfit modules >> are missing on a platform that doesn't support ACPI. >> >> Signed-off-by: Santosh Sivaraj >> --- >> test.h| 2 +- >> test/ack-shutdown-

[PATCH 0/3] fsdax: Factor helper functions to simplify the code

2021-04-06 Thread Shiyang Ruan
The page fault part of fsdax code is little complex. In order to add CoW feature and make it easy to understand, I was suggested to factor some helper functions to simplify the current dax code. (Rebased on v5.12-rc5) == Shiyang Ruan (3): fsdax: Factor helpers to simplify dax fault code fsdax

[PATCH 1/3] fsdax: Factor helpers to simplify dax fault code

2021-04-06 Thread Shiyang Ruan
The dax page fault code is too long and a bit difficult to read. And it is hard to understand when we trying to add new features. Some of the PTE/PMD codes have similar logic. So, factor them as helper functions to simplify the code. Signed-off-by: Shiyang Ruan Reviewed-by: Christoph Hellwig Rev

[PATCH 2/3] fsdax: Factor helper: dax_fault_actor()

2021-04-06 Thread Shiyang Ruan
The core logic in the two dax page fault functions is similar. So, move the logic into a common helper function. Also, to facilitate the addition of new features, such as CoW, switch-case is no longer used to handle different iomap types. Signed-off-by: Shiyang Ruan Reviewed-by: Christoph Hellwig

[PATCH 3/3] fsdax: Output address in dax_iomap_pfn() and rename it

2021-04-06 Thread Shiyang Ruan
Add address output in dax_iomap_pfn() in order to perform a memcpy() in CoW case. Since this function both output address and pfn, rename it to dax_iomap_direct_access(). Signed-off-by: Shiyang Ruan Reviewed-by: Christoph Hellwig Reviewed-by: Ritesh Harjani --- fs/dax.c | 16

[PATCH -next] tools/testing/nvdimm: Make symbol '__nfit_test_ioremap' static

2021-04-06 Thread Zou Wei
The sparse tool complains as follows: tools/testing/nvdimm/test/iomap.c:65:14: warning: symbol '__nfit_test_ioremap' was not declared. Should it be static? This symbol is not used outside of security.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- tools/