• Shiyang Ruan's avatar
    xfs: support CoW in fsdax mode · ea6c49b7
    Shiyang Ruan authored
    In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. 
    After that, new allocated extents needs to be remapped to the file.  So,
    add a CoW identification in ->iomap_begin(), and implement ->iomap_end()
    to do the remapping work.
    
    [akpm@linux-foundation.org: make xfs_dax_fault() static]
    Link: https://lkml.kernel.org/r/20220603053738.1218681-14-ruansy.fnst@fujitsu.comSigned-off-by: default avatarShiyang Ruan <ruansy.fnst@fujitsu.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Dan Williams <dan.j.wiliams@intel.com>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Dave Chinner <david@fromorbit.com>
    Cc: Goldwyn Rodrigues <rgoldwyn@suse.com>
    Cc: Goldwyn Rodrigues <rgoldwyn@suse.de>
    Cc: Jane Chu <jane.chu@oracle.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Miaohe Lin <linmiaohe@huawei.com>
    Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
    Cc: Ritesh Harjani <riteshh@linux.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    ea6c49b7
xfs_iomap.h 1.53 KB