mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: ceph: ensure prealloc_blob is in place when removing xattr rbd: initialize snap_rwsem in rbd_add() ceph: enable/disable dentry complete flags via mount option vfs: export symbol d_find_any_alias() ceph: always initialize the dentry in open_root_dentry() libceph: remove useless return value for osd_client __send_request() ceph: avoid iput() while holding spinlock in ceph_dir_fsync ceph: avoid useless dget/dput in encode_fh ceph: dereference pointer after checking for NULL crush: fix force for non-root TAKE ceph: remove unnecessary d_fsdata conditional checks ceph: Use kmemdup rather than duplicating its implementation Fix up conflicts in fs/ceph/super.c (d_alloc_root() failure handling vs always initialize the dentry in open_root_dentry)
This commit is contained in:
commit
1a52bb0b68
14 changed files with 128 additions and 67 deletions
11
fs/dcache.c
11
fs/dcache.c
|
|
@ -1475,7 +1475,14 @@ static struct dentry * __d_find_any_alias(struct inode *inode)
|
|||
return alias;
|
||||
}
|
||||
|
||||
static struct dentry * d_find_any_alias(struct inode *inode)
|
||||
/**
|
||||
* d_find_any_alias - find any alias for a given inode
|
||||
* @inode: inode to find an alias for
|
||||
*
|
||||
* If any aliases exist for the given inode, take and return a
|
||||
* reference for one of them. If no aliases exist, return %NULL.
|
||||
*/
|
||||
struct dentry *d_find_any_alias(struct inode *inode)
|
||||
{
|
||||
struct dentry *de;
|
||||
|
||||
|
|
@ -1484,7 +1491,7 @@ static struct dentry * d_find_any_alias(struct inode *inode)
|
|||
spin_unlock(&inode->i_lock);
|
||||
return de;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(d_find_any_alias);
|
||||
|
||||
/**
|
||||
* d_obtain_alias - find or allocate a dentry for a given inode
|
||||
|
|
|
|||
Loading…
Reference in a new issue