Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188619
b: refs/heads/master
c: 11ea8ed
h: refs/heads/master
i:
  188617: 5fea93d
  188615: 112d3b1
v: v3
  • Loading branch information
Sage Weil committed Nov 12, 2009
1 parent d9882d2 commit c6fece0
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 039934b895c89c2bb40aa5132efe00e60b70efca
refs/heads/master: 11ea8eda064aa4dc6e44a6dade1891b69ebd5255
4 changes: 2 additions & 2 deletions trunk/fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,

dout("check_caps trying to invalidate on %p\n", inode);
spin_unlock(&inode->i_lock);
ret = invalidate_inode_pages2(&inode->i_data);
ret = invalidate_mapping_pages(&inode->i_data, 0, -1);
spin_lock(&inode->i_lock);
if (ret == 0 && invalidating_gen == ci->i_rdcache_gen) {
/* success. */
Expand Down Expand Up @@ -2180,7 +2180,7 @@ static int handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant,
spin_unlock(&inode->i_lock);
tried_invalidate = 1;

ret = invalidate_inode_pages2(&inode->i_data);
ret = invalidate_mapping_pages(&inode->i_data, 0, -1);
spin_lock(&inode->i_lock);
if (ret < 0) {
/* there were locked pages.. invalidate later
Expand Down

0 comments on commit c6fece0

Please sign in to comment.