ceph: queue cap snap only when snap realm's context changes
authorYan, Zheng <zyan@redhat.com>
Mon, 28 Aug 2017 08:36:53 +0000 (16:36 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:54 +0000 (19:56 +0200)
commit3ae0bebc49b3fb3c9fa9b62b95c5119a04aa7282
treef98801c0cb9e80a22fee86c0001ec0a4e3153f0a
parentc8fd0d37f81dd38e3f319f4938b45a5aaf0dfc58
ceph: queue cap snap only when snap realm's context changes

If we create capsnap when snap realm's context does not change, the
new capsnap's snapc is equal to ci->i_head_snapc. Page writeback code
can't differentiates dirty pages associated with the new capsnap from
dirty pages associated with i_head_snapc.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/snap.c