Re: [PATCH 16/24] mm/swap: reduce scope of get_swap_device in swapin path

From: Kairui Song
Date: Mon Nov 20 2023 - 06:15:29 EST


Matthew Wilcox <willy@xxxxxxxxxxxxx> 于2023年11月20日周一 05:12写道:
>
> On Mon, Nov 20, 2023 at 03:47:32AM +0800, Kairui Song wrote:
> > page = swapin_readahead(entry, GFP_HIGHUSER_MOVABLE,
> > vmf, &cache_result);
> > - if (page) {
> > + if (PTR_ERR(page) == -EBUSY) {
>
> if (page == ERR_PTR(-EBUSY)) {
>

Thanks, I'll fix this.