diff options
author | 2022-07-04 16:01:29 +0200 | |
---|---|---|
committer | 2022-08-18 08:53:31 -0700 | |
commit | 03f51719df032637250af828f9a1ffcc5695982d (patch) | |
tree | 8479e35c63e4f72e4706d0c99060d2fe44ffa867 /lib/memory-notifier-error-inject.c | |
parent | stmmac: intel: remove unused 'has_crossts' flag (diff) | |
download | linux-rng-03f51719df032637250af828f9a1ffcc5695982d.tar.xz linux-rng-03f51719df032637250af828f9a1ffcc5695982d.zip |
ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC
Pages allocated with GFP_ATOMIC cannot come from Highmem. This is why
there is no need to call kmap() on them.
Therefore, don't call kmap() on rx_buffer->page() and instead use a
plain page_address() to get the kernel address.
Suggested-by: Ira Weiny <ira.weiny@intel.com>
Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions