]> git.baikalelectronics.ru Git - kernel.git/commit
zonefs: Call page_address() on page acquired with GFP_KERNEL flag
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Tue, 5 Jul 2022 14:22:02 +0000 (16:22 +0200)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 6 Jul 2022 22:30:36 +0000 (07:30 +0900)
commit6bac30bb8ff8195cbcfc177b3b6b0732929170c1
tree526308426343f510b5e5fa9005a9d61f5ab8ae8a
parent88084a3df1672e131ddc1b4e39eeacfd39864acf
zonefs: Call page_address() on page acquired with GFP_KERNEL flag

zonefs_read_super() acquires a page with alloc_page(GFP_KERNEL). That
page cannot come from ZONE_HIGHMEM, thus there's no need to map it with
kmap().

Therefore, use a plain page_address() on that page.

Suggested-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
fs/zonefs/super.c