diff options
| author | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2011-11-07 12:27:23 -0800 | 
| commit | d30cc16c8e48368e0518f4975a78711e53e14a0f (patch) | |
| tree | 26b57f7ab5a963cc3d6c57dff6951bd930875583 /fs/ceph/inode.c | |
| parent | 41eb2d813f558900884e240c2f723e36c7bd151f (diff) | |
| parent | a1bcc1dcef8451b4291ea2a1b2677cb194102952 (diff) | |
| download | olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.tar.xz olio-linux-3.10-d30cc16c8e48368e0518f4975a78711e53e14a0f.zip  | |
Merge branch 'fixes-modulesplit' into fixes
Diffstat (limited to 'fs/ceph/inode.c')
| -rw-r--r-- | fs/ceph/inode.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 5dde7d51dc1..e392bfce84a 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -618,7 +618,7 @@ static int fill_inode(struct inode *inode,  	}  	if ((issued & CEPH_CAP_LINK_EXCL) == 0) -		inode->i_nlink = le32_to_cpu(info->nlink); +		set_nlink(inode, le32_to_cpu(info->nlink));  	/* be careful with mtime, atime, size */  	ceph_decode_timespec(&atime, &info->atime); @@ -771,9 +771,9 @@ no_change:  	    ceph_snap(inode) == CEPH_NOSNAP &&  	    (le32_to_cpu(info->cap.caps) & CEPH_CAP_FILE_SHARED) &&  	    (issued & CEPH_CAP_FILE_EXCL) == 0 && -	    (ci->i_ceph_flags & CEPH_I_COMPLETE) == 0) { +	    !ceph_dir_test_complete(inode)) {  		dout(" marking %p complete (empty)\n", inode); -		/* ci->i_ceph_flags |= CEPH_I_COMPLETE; */ +		ceph_dir_set_complete(inode);  		ci->i_max_offset = 2;  	} @@ -856,7 +856,7 @@ static void ceph_set_dentry_offset(struct dentry *dn)  	di = ceph_dentry(dn);  	spin_lock(&inode->i_lock); -	if ((ceph_inode(inode)->i_ceph_flags & CEPH_I_COMPLETE) == 0) { +	if (!ceph_dir_test_complete(inode)) {  		spin_unlock(&inode->i_lock);  		return;  	} @@ -1056,7 +1056,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req,  			 * d_move() puts the renamed dentry at the end of  			 * d_subdirs.  We need to assign it an appropriate  			 * directory offset so we can behave when holding -			 * I_COMPLETE. +			 * D_COMPLETE.  			 */  			ceph_set_dentry_offset(req->r_old_dentry);  			dout("dn %p gets new offset %lld\n", req->r_old_dentry,   |