mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ceph: document locking for ceph_set_dentry_offset
Reviewed-by: Yehuda Sadeh <[email protected]> Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
e5f86dc377
commit
4f17726452
1 changed files with 3 additions and 1 deletions
|
|
@ -843,11 +843,13 @@ out_unlock:
|
|||
/*
|
||||
* 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue