summaryrefslogtreecommitdiff
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-04-23 10:25:33 -0700
committerSage Weil <sage@newdream.net>2010-05-03 10:49:25 -0700
commit7ff899da02cb674211858fcd919f8b4511a4423f (patch)
treea200faf72a5ff982a03287c65809d0c78ef11bfd /fs/ceph/addr.c
parentea1409f96197c1bffe5d7d5bc967b3445edcc1fa (diff)
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/ceph/addr.c')
-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;