]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: check folio PG_private bit instead of folio->private
authorXiubo Li <xiubli@redhat.com>
Thu, 5 May 2022 10:53:09 +0000 (18:53 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 10 May 2022 07:48:31 +0000 (09:48 +0200)
commit720f8c8e7a5bee64ea59973658e92f233e16406e
tree137dd0a744365504e962306c7475db2d0aba2c5e
parentf3cb65426d51eee950558f647dcb392ae99fc07c
ceph: check folio PG_private bit instead of folio->private

The pages in the file mapping maybe reclaimed and reused by other
subsystems and the page->private maybe used as flags field or
something else, if later that pages are used by page caches again
the page->private maybe not cleared as expected.

Here will check the PG_private bit instead of the folio->private.

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/55421
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Luis Henriques <lhenriques@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c