dax: Add an enum for specifying dax wakup mode
authorVivek Goyal <vgoyal@redhat.com>
Wed, 28 Apr 2021 19:03:12 +0000 (15:03 -0400)
committerDan Williams <dan.j.williams@intel.com>
Fri, 7 May 2021 22:55:44 +0000 (15:55 -0700)
commit698ab77aebffe08b312fbcdddeb0e8bd08b78717
treebf405b08cc98e4103ba0365bd59b4f59706b68f1
parent9f4ad9e425a1d3b6a34617b8ea226d56a119a717
dax: Add an enum for specifying dax wakup mode

Dan mentioned that he is not very fond of passing around a boolean true/false
to specify if only next waiter should be woken up or all waiters should be
woken up. He instead prefers that we introduce an enum and make it very
explicity at the callsite itself. Easier to read code.

This patch should 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-2-vgoyal@redhat.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c