]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: clear page dirty before invalidate page
authorErqi Chen <chenerqi@gmail.com>
Wed, 24 Jul 2019 02:26:09 +0000 (10:26 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 22 Aug 2019 08:47:41 +0000 (10:47 +0200)
commit629e8ea9057f77a9ebbad94c0ed2b09c0d78521c
tree368586876392f1780d9af7335c7edfec08015d67
parent55ce3e656ee89e94981ef76a9f55308330e1c61c
ceph: clear page dirty before invalidate page

clear_page_dirty_for_io(page) before mapping->a_ops->invalidatepage().
invalidatepage() clears page's private flag, if dirty flag is not
cleared, the page may cause BUG_ON failure in ceph_set_page_dirty().

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/40862
Signed-off-by: Erqi Chen <chenerqi@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c