RE: [PATCH v5 0/7] fsdax,xfs: Add reflink&dedupe support for fsdax

2021-05-10 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Darrick J. Wong > Sent: Tuesday, May 11, 2021 11:57 AM > Subject: Re: [PATCH v5 0/7] fsdax,xfs: Add reflink&dedupe support for fsdax > > On Tue, May 11, 2021 at 11:09:26AM +0800, Shiyang Ruan wrote: > > This patchset is attempt to add CoW support for fsdax, an

Re: [PATCH v5 0/7] fsdax,xfs: Add reflink&dedupe support for fsdax

2021-05-10 Thread Darrick J. Wong
On Tue, May 11, 2021 at 11:09:26AM +0800, Shiyang Ruan wrote: > This patchset is attempt to add CoW support for fsdax, and take XFS, > which has both reflink and fsdax feature, as an example. Slightly off topic, but I noticed all my pmem disappeared once I rolled forward to 5.13-rc1. Am I the onl

[PATCH v5 7/7] fs/xfs: Add dax dedupe support

2021-05-10 Thread Shiyang Ruan
Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files who are going to be deduped. After that, call compare range function only when files are both DAX or not. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_file.c| 2 +- fs/xfs/xfs_inode.c | 66 ++

[PATCH v5 6/7] fs/xfs: Handle CoW for fsdax write() path

2021-05-10 Thread Shiyang Ruan
In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. After CoW, new allocated extents needs to be remapped to the file. So, add an iomap_end for dax write ops to do the remapping work. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_bmap_util.c | 3 +-- fs/xfs/xfs_file.c | 9 +

[PATCH v5 5/7] fsdax: Dedup file range to use a compare function

2021-05-10 Thread Shiyang Ruan
With dax we cannot deal with readpage() etc. So, we create a dax comparison funciton which is similar with vfs_dedupe_file_range_compare(). And introduce dax_remap_file_range_prep() for filesystem use. Signed-off-by: Goldwyn Rodrigues Signed-off-by: Shiyang Ruan --- fs/dax.c | 56 ++

[PATCH v5 4/7] iomap: Introduce iomap_apply2() for operations on two files

2021-05-10 Thread Shiyang Ruan
Some operations, such as comparing a range of data in two files under fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, we introduce iomap_apply2() to accept arguments from two files and iomap_actor2_t for actions on two files. Signed-off-by: Shiyang Ruan Reviewed-by: Darri

[PATCH v5 3/7] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero

2021-05-10 Thread Shiyang Ruan
Punch hole on a reflinked file needs dax_copy_edge() too. Otherwise, data in not aligned area will be not correct. So, add the srcmap to dax_iomap_zero() and replace memset() as dax_copy_edge(). Signed-off-by: Shiyang Ruan Reviewed-by: Ritesh Harjani --- fs/dax.c | 25 ++

[PATCH v5 2/7] fsdax: Replace mmap entry in case of CoW

2021-05-10 Thread Shiyang Ruan
We replace the existing entry to the newly allocated one in case of CoW. Also, we mark the entry as PAGECACHE_TAG_TOWRITE so writeback marks this entry as writeprotected. This helps us snapshots so new write pagefaults after snapshots trigger a CoW. Signed-off-by: Goldwyn Rodrigues Signed-off-by

[PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-10 Thread Shiyang Ruan
In the case where the iomap is a write operation and iomap is not equal to srcmap after iomap_begin, we consider it is a CoW operation. The destance extent which iomap indicated is new allocated extent. So, it is needed to copy the data from srcmap to new allocated extent. In theory, it is better

[PATCH v5 0/7] fsdax,xfs: Add reflink&dedupe support for fsdax

2021-05-10 Thread Shiyang Ruan
This patchset is attempt to add CoW support for fsdax, and take XFS, which has both reflink and fsdax feature, as an example. Changes from V4: - Fix the mistake of breaking dax layout for two inodes - Add CONFIG_FS_DAX judgement for fsdax code in remap_range.c - Fix other small problems and mis

Re: [PATCH v1 07/11] mm/sparse-vmemmap: populate compound pagemaps

2021-05-10 Thread Dan Williams
On Thu, May 6, 2021 at 4:02 AM Joao Martins wrote: [..] > >> +static pte_t * __meminit vmemmap_lookup_address(unsigned long addr) > > > > I think this can be replaced with a call to follow_pte(&init_mm...). > > > > Ah, of course! That would shorten things up too. Now that I look closely, I notice

Re: RFQ for HDPE Pipes

2021-05-10 Thread Saleh Almushekih
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH v18 0/9] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-10 Thread Mike Rapoport
On Thu, May 06, 2021 at 11:47:47AM -0700, James Bottomley wrote: > On Thu, 2021-05-06 at 10:33 -0700, Kees Cook wrote: > > On Thu, May 06, 2021 at 08:26:41AM -0700, James Bottomley wrote: > > > What's happening with O_CLOEXEC in this code? I don't see that > > mentioned in the cover letter either.