]> 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)
commita796251487c40532f6e214d80165c830eaf03ad0
tree137dd0a744365504e962306c7475db2d0aba2c5e
parent2d1c011155219f0d0da8da873c17c782ec6a4b43
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