@@ -690,8 +690,7 @@ static int update_cache_entry(const char *path,
690
690
* handle them properly.
691
691
*/
692
692
static int __dfs_cache_find (const unsigned int xid , struct cifs_ses * ses ,
693
- const struct nls_table * nls_codepage , int remap ,
694
- const char * path , bool noreq )
693
+ const struct nls_table * nls_codepage , int remap , const char * path )
695
694
{
696
695
int rc ;
697
696
unsigned int hash ;
@@ -705,16 +704,6 @@ static int __dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
705
704
down_read (& htable_rw_lock );
706
705
707
706
ce = lookup_cache_entry (path , & hash );
708
-
709
- /*
710
- * If @noreq is set, no requests will be sent to the server. Just return
711
- * the cache entry.
712
- */
713
- if (noreq ) {
714
- up_read (& htable_rw_lock );
715
- return PTR_ERR_OR_ZERO (ce );
716
- }
717
-
718
707
if (!IS_ERR (ce )) {
719
708
if (!cache_entry_expired (ce )) {
720
709
dump_ce (ce );
@@ -879,7 +868,7 @@ int dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
879
868
if (rc )
880
869
return rc ;
881
870
882
- rc = __dfs_cache_find (xid , ses , nls_codepage , remap , npath , false );
871
+ rc = __dfs_cache_find (xid , ses , nls_codepage , remap , npath );
883
872
if (rc )
884
873
goto out_free_path ;
885
874
@@ -991,7 +980,7 @@ int dfs_cache_update_tgthint(const unsigned int xid, struct cifs_ses *ses,
991
980
992
981
cifs_dbg (FYI , "%s: update target hint - path: %s\n" , __func__ , npath );
993
982
994
- rc = __dfs_cache_find (xid , ses , nls_codepage , remap , npath , false );
983
+ rc = __dfs_cache_find (xid , ses , nls_codepage , remap , npath );
995
984
if (rc )
996
985
goto out_free_path ;
997
986
0 commit comments