Skip to content
  • John Hubbard's avatar
    mm/gup_benchmark: use proper FOLL_WRITE flags instead of hard-coding "1" · bdffe23e
    John Hubbard authored
    Fix the gup benchmark flags to use the symbolic FOLL_WRITE, instead of a
    hard-coded "1" value.
    
    Also, clean up the filtering of gup flags a little, by just doing it
    once before issuing any of the get_user_pages*() calls.  This makes it
    harder to overlook, instead of having little "gup_flags & 1" phrases in
    the function calls.
    
    Link: http://lkml.kernel.org/r/20200107224558.2362728-22-jhubbard@nvidia.com
    
    
    Signed-off-by: default avatarJohn Hubbard <jhubbard@nvidia.com>
    Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
    Cc: Alex Williamson <alex.williamson@redhat.com>
    Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
    Cc: Björn Töpel <bjorn.topel@intel.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Cc: Jan Kara <jack@suse.cz>
    Cc: Jason Gunthorpe <jgg@mellanox.com>
    Cc: Jason Gunthorpe <jgg@ziepe.ca>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: ...
    bdffe23e