diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-05-05 21:22:13 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-06-25 11:49:29 +0300 |
commit | affbc19a68f9966ad65a773db405f78e2bafc07b (patch) | |
tree | 63c34c40700e8b1fe1a73f1df244f3143b7aa99f /fs/ceph/snap.c | |
parent | 622f3e250f498976ad4cbae6f2be5cb359ded4f5 (diff) | |
download | linux-stable-affbc19a68f9966ad65a773db405f78e2bafc07b.tar.gz linux-stable-affbc19a68f9966ad65a773db405f78e2bafc07b.tar.bz2 linux-stable-affbc19a68f9966ad65a773db405f78e2bafc07b.zip |
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: /* queue realm for cap_snap creation */ list_add(&realm->dirty_item, &dirty_realms); + if (realm->seq > mdsc->last_snap_seq) + mdsc->last_snap_seq = realm->seq; invalidate = 1; } else if (!realm->cached_context) { |