Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373306
b: refs/heads/master
c: 964266c
h: refs/heads/master
v: v3
  • Loading branch information
Yan, Zheng authored and Sage Weil committed May 2, 2013
1 parent 67cf38c commit e892bcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d40ee0dcc1b27792b9b2f3905a5eaf4da061dbd5
refs/heads/master: 964266cce94cee7e4aca42994fcda206c111e917
6 changes: 5 additions & 1 deletion trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ int ceph_add_cap(struct inode *inode,
cap->implemented = 0;
cap->mds = mds;
cap->mds_wanted = 0;
cap->mseq = 0;

cap->ci = ci;
__insert_cap_node(ci, cap);
Expand Down Expand Up @@ -628,7 +629,10 @@ int ceph_add_cap(struct inode *inode,
cap->cap_id = cap_id;
cap->issued = issued;
cap->implemented |= issued;
cap->mds_wanted |= wanted;
if (mseq > cap->mseq)
cap->mds_wanted = wanted;
else
cap->mds_wanted |= wanted;
cap->seq = seq;
cap->issue_seq = seq;
cap->mseq = mseq;
Expand Down

0 comments on commit e892bcb

Please sign in to comment.