提交 4f177264 编写于 作者: S Sage Weil

ceph: document locking for ceph_set_dentry_offset

Reviewed-by: NYehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: NSage Weil <sage@newdream.net>
上级 e5f86dc3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册