Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211607
b: refs/heads/master
c: 496e595
h: refs/heads/master
i:
  211605: dbaec33
  211603: 448678a
  211599: c15200b
v: v3
  • Loading branch information
Sage Weil committed Oct 20, 2010
1 parent 45ccc6c commit bb0a5fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: fca4451acfdcf894154e4809529ca28a09db88ff
refs/heads/master: 496e59553c51ce18acc836de070106b583926b87
11 changes: 6 additions & 5 deletions trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#include <linux/ceph/ceph_debug.h>

#include <linux/fs.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/smp_lock.h>

#include "super.h"
#include "mds_client.h"
Expand Down Expand Up @@ -2369,13 +2370,13 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,

ceph_pagelist_set_cursor(pagelist, &trunc_point);
do {
lock_kernel();
lock_flocks();
ceph_count_locks(inode, &num_fcntl_locks,
&num_flock_locks);
rec.v2.flock_len = (2*sizeof(u32) +
(num_fcntl_locks+num_flock_locks) *
sizeof(struct ceph_filelock));
unlock_kernel();
unlock_flocks();

/* pre-alloc pagelist */
ceph_pagelist_truncate(pagelist, &trunc_point);
Expand All @@ -2386,12 +2387,12 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,

/* encode locks */
if (!err) {
lock_kernel();
lock_flocks();
err = ceph_encode_locks(inode,
pagelist,
num_fcntl_locks,
num_flock_locks);
unlock_kernel();
unlock_flocks();
}
} while (err == -ENOSPC);
} else {
Expand Down

0 comments on commit bb0a5fa

Please sign in to comment.