mm: vmscan: use gfp_has_io_fs()
JIRA: https://issues.redhat.com/browse/RHEL-20141 commit 5221b5a89340f63dafa4d5f38537efb1ad506f15 Author: Kefeng Wang <wangkefeng.wang@huawei.com> Date: Tue May 16 14:38:19 2023 +0800 mm: vmscan: use gfp_has_io_fs() Use gfp_has_io_fs() instead of open-code. Link: https://lkml.kernel.org/r/20230516063821.121844-12-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: David Hildenbrand <david@redhat.com> Cc: "Huang, Ying" <ying.huang@intel.com> Cc: Iurii Zaikin <yzaikin@google.com> Cc: Kees Cook <keescook@chromium.org> Cc: Len Brown <len.brown@intel.com> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: Mike Rapoport (IBM) <rppt@kernel.org> Cc: Oscar Salvador <osalvador@suse.de> Cc: Pavel Machek <pavel@ucw.cz> Cc: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
This commit is contained in:
parent
c724e38631
commit
65b9dc6724
|
@ -2463,7 +2463,7 @@ static int too_many_isolated(struct pglist_data *pgdat, int file,
|
|||
* won't get blocked by normal direct-reclaimers, forming a circular
|
||||
* deadlock.
|
||||
*/
|
||||
if ((sc->gfp_mask & (__GFP_IO | __GFP_FS)) == (__GFP_IO | __GFP_FS))
|
||||
if (gfp_has_io_fs(sc->gfp_mask))
|
||||
inactive >>= 3;
|
||||
|
||||
too_many = isolated > inactive;
|
||||
|
|
Loading…
Reference in New Issue