Re: [PATCH] dax: Allow block size > PAGE_SIZE

2024-11-12 Thread Asahi Lina
On 11/8/24 9:16 PM, Jan Kara wrote: > On Fri 08-11-24 01:09:54, Asahi Lina wrote: >> On 11/7/24 7:01 PM, Jan Kara wrote: >>> On Wed 06-11-24 11:59:44, Dan Williams wrote: >>>> Jan Kara wrote: >>>> [..] >>>>>> This WARN still feels l

Re: [PATCH] dax: Allow block size > PAGE_SIZE

2024-11-07 Thread Asahi Lina
On 11/8/24 6:24 AM, Dan Williams wrote: > Asahi Lina wrote: > [..] >> I don't think that's how it actually works, at least on arm64. >> arch_wb_cache_pmem() calls dcache_clean_pop() which is either dc cvap or >> dc cvac. Those are trapped by HCR_EL2, and tha

Re: [PATCH] dax: Allow block size > PAGE_SIZE

2024-11-07 Thread Asahi Lina
On 11/7/24 7:01 PM, Jan Kara wrote: > On Wed 06-11-24 11:59:44, Dan Williams wrote: >> Jan Kara wrote: >> [..] This WARN still feels like the wrong thing, though. Right now it is the only thing in DAX code complaining on a page size/block size mismatch (at least for virtiofs). If

Re: [PATCH] dax: Allow block size > PAGE_SIZE

2024-11-06 Thread Asahi Lina
On 11/5/24 7:16 AM, Dave Chinner wrote: > On Tue, Nov 05, 2024 at 12:31:22AM +0900, Asahi Lina wrote: >> >> >> On 11/4/24 7:57 PM, Jan Kara wrote: >>> On Fri 01-11-24 21:22:31, Asahi Lina wrote: >>>> For virtio-dax, the file/FS blocksize is irreleva

Re: [PATCH] dax: Allow block size > PAGE_SIZE

2024-11-04 Thread Asahi Lina
On 11/4/24 7:57 PM, Jan Kara wrote: > On Fri 01-11-24 21:22:31, Asahi Lina wrote: >> For virtio-dax, the file/FS blocksize is irrelevant. FUSE always uses >> large DAX blocks (2MiB), which will work with all host page sizes. Since >> we are mapping files into the DAX wi

[PATCH] dax: Allow block size > PAGE_SIZE

2024-11-01 Thread Asahi Lina
== PAGE_SIZE on the host). Signed-off-by: Asahi Lina --- fs/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index c62acd2812f8d4981aaba82acfeaf972f555362a..406fb75bdbe9d17a6e4bf3d4cb92683e90f05910 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1032,7 +1032,7