diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-05-05 09:22:13 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 04:49:29 -0400 |
commit | affbc19a68f9966ad65a773db405f78e2bafc07b (patch) | |
tree | 63c34c40700e8b1fe1a73f1df244f3143b7aa99f /fs/ceph/snap.c | |
parent | 622f3e250f498976ad4cbae6f2be5cb359ded4f5 (diff) |
ceph: make sure syncfs flushes all cap snaps
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 ba708017d60b..233d906aec02 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c | |||
@@ -730,6 +730,8 @@ more: | |||
730 | 730 | ||
731 | /* queue realm for cap_snap creation */ | 731 | /* queue realm for cap_snap creation */ |
732 | list_add(&realm->dirty_item, &dirty_realms); | 732 | list_add(&realm->dirty_item, &dirty_realms); |
733 | if (realm->seq > mdsc->last_snap_seq) | ||
734 | mdsc->last_snap_seq = realm->seq; | ||
733 | 735 | ||
734 | invalidate = 1; | 736 | invalidate = 1; |
735 | } else if (!realm->cached_context) { | 737 | } else if (!realm->cached_context) { |