Re: [PATCH v2 4/8] fsdax,xfs: set the shared flag when file extent is shared

2022-12-01 Thread Darrick J. Wong
On Thu, Dec 01, 2022 at 03:28:54PM +, Shiyang Ruan wrote: > If a dax page is shared, mapread at different offsets can also trigger > page fault on same dax page. So, change the flag from "cow" to > "shared". And get the shared flag from filesystem when read. > > Signed-off-by: Shiyang Ruan

[PATCH v2 4/8] fsdax,xfs: set the shared flag when file extent is shared

2022-12-01 Thread Shiyang Ruan
If a dax page is shared, mapread at different offsets can also trigger page fault on same dax page. So, change the flag from "cow" to "shared". And get the shared flag from filesystem when read. Signed-off-by: Shiyang Ruan --- fs/dax.c | 19 +++ fs/xfs/xfs_iomap.c |