Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1730671

Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device

From Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device
Date 2017-09-12 08:10 +0200
Message-ID <uoMyt-5Za-1@gated-at.bofh.it> (permalink)
References <uoJhf-3C9-5@gated-at.bofh.it> <uoJhf-3C9-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On (09/12/17 11:37), Minchan Kim wrote:
> +		} else {
> +			/* skip swapcache */
> +			page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, vmf->address);

what if alloc_page_vma() fails?

> +			__SetPageLocked(page);
> +			__SetPageSwapBacked(page);
> +			set_page_private(page, entry.val);
> +			lru_cache_add_anon(page);
> +			swap_readpage(page, true);
> +		}

	-ss

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/5] zram: set BDI_CAP_STABLE_WRITES once Minchan Kim <minchan@kernel.org> - 2017-09-12 04:40 +0200
  [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device Minchan Kim <minchan@kernel.org> - 2017-09-12 04:40 +0200
    Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous  device Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-09-12 08:10 +0200
      Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous  device Minchan Kim <minchan@kernel.org> - 2017-09-12 08:40 +0200
    Re: [PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous  device Minchan Kim <minchan@kernel.org> - 2017-09-13 02:20 +0200
  [PATCH 3/5] mm:swap: introduce SWP_SYNCHRONOUS_IO Minchan Kim <minchan@kernel.org> - 2017-09-12 04:40 +0200
    Re: [PATCH 3/5] mm:swap: introduce SWP_SYNCHRONOUS_IO Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-09-12 06:50 +0200

csiph-web