summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShiyang Ruan <ruansy.fnst@fujitsu.com>2022-12-01 18:28:52 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-12 05:12:16 +0300
commitf80e1668888f34c0764822e74953c997daf2ccdb (patch)
tree736491b9ee73e4603e4795e716927e572b4961e6 /lib
parent169004265860327182ecf92297b25b6271e81e96 (diff)
downloadlinux-f80e1668888f34c0764822e74953c997daf2ccdb.tar.xz
fsdax: invalidate pages when CoW
CoW changes the share state of a dax page, but the share count of the page isn't updated. The next time access this page, it should have been a newly accessed, but old association exists. So, we need to clear the share state when CoW happens, in both dax_iomap_rw() and dax_zero_iter(). Link: https://lkml.kernel.org/r/1669908538-55-3-git-send-email-ruansy.fnst@fujitsu.com Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Cc: Alistair Popple <apopple@nvidia.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Dave Chinner <david@fromorbit.com> Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions