diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-27 17:00:14 -0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-27 20:19:24 -0300 |
commit | a3eb13c1579ba97d79fbbc98bc5b1296a3688a25 (patch) | |
tree | 5a35f53dbe8a4e061841d1f419f492e392cae411 /include/linux/hmm.h | |
parent | 068354ade5dd9e2b07d9b0c57055a681db6f4e37 (diff) | |
download | lwn-a3eb13c1579ba97d79fbbc98bc5b1296a3688a25.tar.gz lwn-a3eb13c1579ba97d79fbbc98bc5b1296a3688a25.zip |
mm/hmm: return the fault type from hmm_pte_need_fault()
Using two bools instead of flags return is not necessary and leads to
bugs. Returning a value is easier for the compiler to check and easier to
pass around the code flow.
Convert the two bools into flags and push the change to all callers.
Link: https://lore.kernel.org/r/20200327200021.29372-3-jgg@ziepe.ca
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/hmm.h')
0 files changed, 0 insertions, 0 deletions