diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-01-16 11:15:51 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-08-07 14:40:10 -0400 |
commit | 52ed46f0fa88243887b823d24ccb9fcf47a735b3 (patch) | |
tree | 7cbdaafc90370b286bdf62ba5bd91b5f036911e8 /fs/dcache.c | |
parent | 1a0a397e41cb1bf70cfe45fd0eeff08c7c501ec0 (diff) |
dcache: remove unused d_find_alias parameter
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/dcache.c')
-rw-r--r-- | fs/dcache.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 63d556c0e698..5c5f3bd9af5f 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -731,8 +731,6 @@ EXPORT_SYMBOL(dget_parent); | |||
731 | /** | 731 | /** |
732 | * d_find_alias - grab a hashed alias of inode | 732 | * d_find_alias - grab a hashed alias of inode |
733 | * @inode: inode in question | 733 | * @inode: inode in question |
734 | * @want_discon: flag, used by d_splice_alias, to request | ||
735 | * that only a DISCONNECTED alias be returned. | ||
736 | * | 734 | * |
737 | * If inode has a hashed alias, or is a directory and has any alias, | 735 | * If inode has a hashed alias, or is a directory and has any alias, |
738 | * acquire the reference to alias and return it. Otherwise return NULL. | 736 | * acquire the reference to alias and return it. Otherwise return NULL. |
@@ -741,10 +739,9 @@ EXPORT_SYMBOL(dget_parent); | |||
741 | * of a filesystem. | 739 | * of a filesystem. |
742 | * | 740 | * |
743 | * If the inode has an IS_ROOT, DCACHE_DISCONNECTED alias, then prefer | 741 | * If the inode has an IS_ROOT, DCACHE_DISCONNECTED alias, then prefer |
744 | * any other hashed alias over that one unless @want_discon is set, | 742 | * any other hashed alias over that one. |
745 | * in which case only return an IS_ROOT, DCACHE_DISCONNECTED alias. | ||
746 | */ | 743 | */ |
747 | static struct dentry *__d_find_alias(struct inode *inode, int want_discon) | 744 | static struct dentry *__d_find_alias(struct inode *inode) |
748 | { | 745 | { |
749 | struct dentry *alias, *discon_alias; | 746 | struct dentry *alias, *discon_alias; |
750 | 747 | ||
@@ -756,7 +753,7 @@ again: | |||
756 | if (IS_ROOT(alias) && | 753 | if (IS_ROOT(alias) && |
757 | (alias->d_flags & DCACHE_DISCONNECTED)) { | 754 | (alias->d_flags & DCACHE_DISCONNECTED)) { |
758 | discon_alias = alias; | 755 | discon_alias = alias; |
759 | } else if (!want_discon) { | 756 | } else { |
760 | __dget_dlock(alias); | 757 | __dget_dlock(alias); |
761 | spin_unlock(&alias->d_lock); | 758 | spin_unlock(&alias->d_lock); |
762 | return alias; | 759 | return alias; |
@@ -787,7 +784,7 @@ struct dentry *d_find_alias(struct inode *inode) | |||
787 | 784 | ||
788 | if (!hlist_empty(&inode->i_dentry)) { | 785 | if (!hlist_empty(&inode->i_dentry)) { |
789 | spin_lock(&inode->i_lock); | 786 | spin_lock(&inode->i_lock); |
790 | de = __d_find_alias(inode, 0); | 787 | de = __d_find_alias(inode); |
791 | spin_unlock(&inode->i_lock); | 788 | spin_unlock(&inode->i_lock); |
792 | } | 789 | } |
793 | return de; | 790 | return de; |
@@ -2765,7 +2762,7 @@ struct dentry *d_materialise_unique(struct dentry *dentry, struct inode *inode) | |||
2765 | struct dentry *alias; | 2762 | struct dentry *alias; |
2766 | 2763 | ||
2767 | /* Does an aliased dentry already exist? */ | 2764 | /* Does an aliased dentry already exist? */ |
2768 | alias = __d_find_alias(inode, 0); | 2765 | alias = __d_find_alias(inode); |
2769 | if (alias) { | 2766 | if (alias) { |
2770 | actual = alias; | 2767 | actual = alias; |
2771 | write_seqlock(&rename_lock); | 2768 | write_seqlock(&rename_lock); |