diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2022-10-21 20:41:08 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-09 21:29:20 +0300 |
commit | 0f0892356fa174bdd8bd655c820ee3658c4c9f01 (patch) | |
tree | 905f8673a7c67c1947fd197fba64e935cbec53b4 /tools/perf/scripts/python/syscall-counts.py | |
parent | 5b2560c4c20e6d6933625b4b56f6843d6c7faf0f (diff) | |
download | linux-0f0892356fa174bdd8bd655c820ee3658c4c9f01.tar.xz |
mm: allow multiple error returns in try_grab_page()
In order to add checks for P2PDMA memory into try_grab_page(), expand
the error return from a bool to an int/error code. Update all the
callsites handle change in usage.
Also remove the WARN_ON_ONCE() call at the callsites seeing there
already is a WARN_ON_ONCE() inside the function if it fails.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221021174116.7200-2-logang@deltatee.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions