diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-13 13:29:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-13 13:29:21 -0500 |
commit | 1a52bb0b686844021597d190e562ab55d1210104 (patch) | |
tree | 7edf13509869a6a7f1f488a679f15ff6c3057c54 /fs/dcache.c | |
parent | 8638094e956a47dbb9a25166705a91e9a0981d52 (diff) | |
parent | 83eb26af0db71f2dfe551405c55d982288fa6178 (diff) |
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)
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 616fedff011a..16a53cc2cc02 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -1475,7 +1475,14 @@ static struct dentry * __d_find_any_alias(struct inode *inode) | |||
1475 | return alias; | 1475 | return alias; |
1476 | } | 1476 | } |
1477 | 1477 | ||
1478 | static struct dentry * d_find_any_alias(struct inode *inode) | 1478 | /** |
1479 | * d_find_any_alias - find any alias for a given inode | ||
1480 | * @inode: inode to find an alias for | ||
1481 | * | ||
1482 | * If any aliases exist for the given inode, take and return a | ||
1483 | * reference for one of them. If no aliases exist, return %NULL. | ||
1484 | */ | ||
1485 | struct dentry *d_find_any_alias(struct inode *inode) | ||
1479 | { | 1486 | { |
1480 | struct dentry *de; | 1487 | struct dentry *de; |
1481 | 1488 | ||
@@ -1484,7 +1491,7 @@ static struct dentry * d_find_any_alias(struct inode *inode) | |||
1484 | spin_unlock(&inode->i_lock); | 1491 | spin_unlock(&inode->i_lock); |
1485 | return de; | 1492 | return de; |
1486 | } | 1493 | } |
1487 | 1494 | EXPORT_SYMBOL(d_find_any_alias); | |
1488 | 1495 | ||
1489 | /** | 1496 | /** |
1490 | * d_obtain_alias - find or allocate a dentry for a given inode | 1497 | * d_obtain_alias - find or allocate a dentry for a given inode |