dax: Add a wakeup mode parameter to put_unlocked_entry()
authorVivek Goyal <vgoyal@redhat.com>
Wed, 28 Apr 2021 19:03:13 +0000 (15:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:13:12 +0000 (10:13 +0200)
commite9e70b78e163f768aee90f621566a5b7055fce17
tree24ae76c68a621c4acd0eb18816c45fab18721623
parentb93d3410e789b027dd6845362a8738d58382194a
dax: Add a wakeup mode parameter to put_unlocked_entry()

[ Upstream commit 4c3d043d271d4d629aa2328796cdfc96b37d3b3c ]

As of now put_unlocked_entry() always wakes up next waiter. In next
patches we want to wake up all waiters at one callsite. Hence, add a
parameter to the function.

This patch does not introduce any change of behavior.

Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Link: https://lore.kernel.org/r/20210428190314.1865312-3-vgoyal@redhat.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dax.c