aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r--fs/cifs/readdir.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
index 89aae6cb32f8..32b445edc882 100644
--- a/fs/cifs/readdir.c
+++ b/fs/cifs/readdir.c
@@ -50,6 +50,10 @@ static void dump_cifs_file_struct(struct file *file, char *label)
50 cFYI(1, ("empty dir")); 50 cFYI(1, ("empty dir"));
51 } 51 }
52} 52}
53#else
54static inline void dump_cifs_file_struct(struct file *file, char *label)
55{
56}
53#endif /* DEBUG2 */ 57#endif /* DEBUG2 */
54 58
55/* Returns one if new inode created (which therefore needs to be hashed) */ 59/* Returns one if new inode created (which therefore needs to be hashed) */
@@ -660,9 +664,7 @@ static int find_cifs_entry(const int xid, struct cifsTconInfo *pTcon,
660 . and .. for the root of a drive and for those we need 664 . and .. for the root of a drive and for those we need
661 to start two entries earlier */ 665 to start two entries earlier */
662 666
663#ifdef CONFIG_CIFS_DEBUG2
664 dump_cifs_file_struct(file, "In fce "); 667 dump_cifs_file_struct(file, "In fce ");
665#endif
666 if (((index_to_find < cifsFile->srch_inf.index_of_last_entry) && 668 if (((index_to_find < cifsFile->srch_inf.index_of_last_entry) &&
667 is_dir_changed(file)) || 669 is_dir_changed(file)) ||
668 (index_to_find < first_entry_in_buffer)) { 670 (index_to_find < first_entry_in_buffer)) {