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)
commitc2436190e492b243235262fc080a2c3189021be9
treeb834281f6c595bd5885ded6c6ea80f91ba7e2aaa
parent55f81639a7152848f204f9af3f9b1a14a5944be1
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