summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-04-23 19:25:33 +0200
committerSage Weil <sage@newdream.net>2010-05-03 19:49:25 +0200
commit7ff899da02cb674211858fcd919f8b4511a4423f (patch)
treea200faf72a5ff982a03287c65809d0c78ef11bfd /fs
parentceph: clear dir complete, invalidate dentry on replayed rename (diff)
downloadlinux-7ff899da02cb674211858fcd919f8b4511a4423f.tar.xz
linux-7ff899da02cb674211858fcd919f8b4511a4423f.zip
ceph: fix lockless caps check
The __ variant requires caller to hold i_lock. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 412593703d1e..4b42c2bb603f 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -509,7 +509,7 @@ static void writepages_finish(struct ceph_osd_request *req,
u64 bytes = 0;
struct ceph_client *client = ceph_inode_to_client(inode);
long writeback_stat;
- unsigned issued = __ceph_caps_issued(ci, NULL);
+ unsigned issued = ceph_caps_issued(ci);
/* parse reply */
replyhead = msg->front.iov_base;