diff options
author | Sage Weil <sage@newdream.net> | 2010-09-14 15:45:44 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-09-14 15:45:44 -0700 |
commit | 8bef9239ee1a42eb37d3f83bacf6a75f019c028d (patch) | |
tree | aca21838744fd483b5a2e374315c095b98193647 /fs/ceph/snap.c | |
parent | 467c525109d5d542d7d416b0c11bdd54610fe2f4 (diff) | |
download | lwn-8bef9239ee1a42eb37d3f83bacf6a75f019c028d.tar.gz lwn-8bef9239ee1a42eb37d3f83bacf6a75f019c028d.zip |
ceph: correctly set 'follows' in flushsnap messages
The 'follows' should match the seq for the snap context for the given snap
cap, which is the context under which we have been dirtying and writing
data and metadata. The snapshot that _contains_ those updates thus
_follows_ that context's seq #.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/snap.c')
-rw-r--r-- | fs/ceph/snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c index 4868b9dcac5a..9e836afba341 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c @@ -467,7 +467,7 @@ void ceph_queue_cap_snap(struct ceph_inode_info *ci) INIT_LIST_HEAD(&capsnap->ci_item); INIT_LIST_HEAD(&capsnap->flushing_item); - capsnap->follows = snapc->seq - 1; + capsnap->follows = snapc->seq; capsnap->issued = __ceph_caps_issued(ci, NULL); capsnap->dirty = dirty; |