]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: fix setting up pcluster for temporary pages
authorGao Xiang <hsiangkao@redhat.com>
Thu, 22 Oct 2020 14:57:21 +0000 (22:57 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Wed, 4 Nov 2020 01:15:48 +0000 (09:15 +0800)
commit6638f272d2769fafd57b246beb4f4dd5a5c27b3c
tree684ef7dce9e2ab0e1eeba136bc8e2266e38827a8
parent331823c0176b1d0de5bcb8b0c4af84657f67f2cb
erofs: fix setting up pcluster for temporary pages

pcluster should be only set up for all managed pages instead of
temporary pages. Since it currently uses page->mapping to identify,
the impact is minor for now.

[ Update: Vladimir reported the kernel log becomes polluted
  because PAGE_FLAGS_CHECK_AT_FREE flag(s) set if the page
  allocation debug option is enabled. ]

Link: https://lore.kernel.org/r/20201022145724.27284-1-hsiangkao@aol.com
Fixes: 745e5e101f4f ("erofs: get rid of __stagingpage_alloc helper")
Cc: <stable@vger.kernel.org> # 5.5+
Tested-by: Vladimir Zapolskiy <vladimir@tuxera.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/zdata.c