Skip to content

Commit

Permalink
ceph: document locking for ceph_set_dentry_offset
Browse files Browse the repository at this point in the history
Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Jul 26, 2011
1 parent e5f86dc commit 4f17726
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ceph/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,11 +843,13 @@ static void update_dentry_lease(struct dentry *dentry,
/*
* Set dentry's directory position based on the current dir's max, and
* order it in d_subdirs, so that dcache_readdir behaves.
*
* Always called under directory's i_mutex.
*/
static void ceph_set_dentry_offset(struct dentry *dn)
{
struct dentry *dir = dn->d_parent;
struct inode *inode = dn->d_parent->d_inode;
struct inode *inode = dir->d_inode;
struct ceph_dentry_info *di;

BUG_ON(!inode);
Expand Down

0 comments on commit 4f17726

Please sign in to comment.