Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198075
b: refs/heads/master
c: a5ee751
h: refs/heads/master
i:
  198073: 40c8d40
  198071: 872f636
v: v3
  • Loading branch information
Dan Carpenter authored and Sage Weil committed May 17, 2010
1 parent 4997ba2 commit 9adcc6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 0f8605f2bde2c69737709765dfc574558ea35d4e
refs/heads/master: a5ee751c15016d0deee0d651e42a3b163ea73ade
3 changes: 1 addition & 2 deletions trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,10 +1718,9 @@ static int try_flush_caps(struct inode *inode, struct ceph_mds_session *session,
static int caps_are_flushed(struct inode *inode, unsigned tid)
{
struct ceph_inode_info *ci = ceph_inode(inode);
int dirty, i, ret = 1;
int i, ret = 1;

spin_lock(&inode->i_lock);
dirty = __ceph_caps_dirty(ci);
for (i = 0; i < CEPH_CAP_BITS; i++)
if ((ci->i_flushing_caps & (1 << i)) &&
ci->i_cap_flush_tid[i] <= tid) {
Expand Down

0 comments on commit 9adcc6a

Please sign in to comment.