summaryrefslogtreecommitdiffstats
path: root/fs/ceph/snap.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-07-06 10:21:30 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-07-28 03:00:43 +0200
commit70220ac8c220495b2a335868293be80a31dfdd4a (patch)
tree160ae75e585aee36d5a6000355ccbeca2aa59e1b /fs/ceph/snap.c
parentceph: avoid sending duplicated cap flush message (diff)
downloadlinux-70220ac8c220495b2a335868293be80a31dfdd4a.tar.xz
linux-70220ac8c220495b2a335868293be80a31dfdd4a.zip
ceph: introduce an inode flag to indicates if snapflush is needed
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/snap.c')
-rw-r--r--fs/ceph/snap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c
index 20d5b0cdf655..c3b03ae1976c 100644
--- a/fs/ceph/snap.c
+++ b/fs/ceph/snap.c
@@ -601,6 +601,8 @@ int __ceph_finish_cap_snap(struct ceph_inode_info *ci,
capsnap->dirty_pages);
return 0;
}
+
+ ci->i_ceph_flags |= CEPH_I_FLUSH_SNAPS;
dout("finish_cap_snap %p cap_snap %p snapc %p %llu %s s=%llu\n",
inode, capsnap, capsnap->context,
capsnap->context->seq, ceph_cap_string(capsnap->dirty),