]> git.baikalelectronics.ru Git - kernel.git/commit
fsdax: factor out a dax_fault_actor() helper
authorShiyang Ruan <ruansy.fnst@fujitsu.com>
Wed, 11 Aug 2021 01:33:15 +0000 (18:33 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000 (21:26 -0700)
commit426f50162b3cabac5609f35b66f8404f4403dec4
treeb834281f6c595bd5885ded6c6ea80f91ba7e2aaa
parenta4a8e6df8fccb1e8dacf5278cdf07b8ee208beb5
fsdax: factor out a dax_fault_actor() helper

The core logic in the two dax page fault functions is similar. So, move
the logic into a common helper function. Also, to facilitate the
addition of new features, such as CoW, switch-case is no longer used to
handle different iomap types.

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/dax.c