diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-07-06 11:21:30 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-07-28 04:00:43 +0300 |
commit | 70220ac8c220495b2a335868293be80a31dfdd4a (patch) | |
tree | 160ae75e585aee36d5a6000355ccbeca2aa59e1b /fs/ceph/snap.c | |
parent | 13c2b57d81ec27716b9c943fd4077264b9804e55 (diff) | |
download | linux-70220ac8c220495b2a335868293be80a31dfdd4a.tar.xz |
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.c | 2 |
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), |