diff options
| author | 2013-08-15 11:11:45 -0700 | |
|---|---|---|
| committer | 2013-08-15 11:11:45 -0700 | |
| commit | ee3e542fec6e69bc9fb668698889a37d93950ddf (patch) | |
| tree | e74ee766a4764769ef1d3d45d266b4dea64101d3 /fs/ceph/mds_client.c | |
| parent | ceph: Remove bogus check in invalidatepage (diff) | |
| parent | Merge branch 'akpm' (patches from Andrew Morton) (diff) | |
| download | linux-dev-ee3e542fec6e69bc9fb668698889a37d93950ddf.tar.xz linux-dev-ee3e542fec6e69bc9fb668698889a37d93950ddf.zip  | |
Merge remote-tracking branch 'linus/master' into testing
Diffstat (limited to 'fs/ceph/mds_client.c')
| -rw-r--r-- | fs/ceph/mds_client.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index cbf08203e00d..603786b564be 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -1588,7 +1588,7 @@ retry:  	*base = ceph_ino(temp->d_inode);  	*plen = len;  	dout("build_path on %p %d built %llx '%.*s'\n", -	     dentry, dentry->d_count, *base, len, path); +	     dentry, d_count(dentry), *base, len, path);  	return path;  } @@ -2517,20 +2517,20 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,  		struct ceph_filelock *flocks;  encode_again: -		lock_flocks(); +		spin_lock(&inode->i_lock);  		ceph_count_locks(inode, &num_fcntl_locks, &num_flock_locks); -		unlock_flocks(); +		spin_unlock(&inode->i_lock);  		flocks = kmalloc((num_fcntl_locks+num_flock_locks) *  				 sizeof(struct ceph_filelock), GFP_NOFS);  		if (!flocks) {  			err = -ENOMEM;  			goto out_free;  		} -		lock_flocks(); +		spin_lock(&inode->i_lock);  		err = ceph_encode_locks_to_buffer(inode, flocks,  						  num_fcntl_locks,  						  num_flock_locks); -		unlock_flocks(); +		spin_unlock(&inode->i_lock);  		if (err) {  			kfree(flocks);  			if (err == -ENOSPC)  | 
