]> git.itanic.dy.fi Git - linux-stable/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)
commit642d51fb0775a41dd6bb3d99b5a40c24df131c20
tree137dd0a744365504e962306c7475db2d0aba2c5e
parent620239d9a32e9fe27c9204ec11e40058671aeeb6
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