[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZVp3WR+D4Z/UZEqO@casper.infradead.org>
Date: Sun, 19 Nov 2023 21:00:09 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Kairui Song <kasong@...cent.com>
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
"Huang, Ying" <ying.huang@...el.com>,
David Hildenbrand <david@...hat.com>,
Hugh Dickins <hughd@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Michal Hocko <mhocko@...e.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 03/24] mm/swap: move no readahead swapin code to a stand
alone helper
On Mon, Nov 20, 2023 at 03:47:19AM +0800, Kairui Song wrote:
> + /* skip swapcache and readahead */
> + page = swapin_no_readahead(entry, GFP_HIGHUSER_MOVABLE,
> + vmf);
> + if (page)
> + folio = page_folio(page);
I think this should rather be:
folio = swapin_no_readahead(entry,
GFP_HIGHUSER_MOVABLE, vma);
page = &folio->page;
and have swapin_no_readahead() work entirely in terms of folios.
Powered by blists - more mailing lists