aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-02-12 15:32:36 -0500
committerSteve French <sfrench@us.ibm.com>2008-02-12 15:32:36 -0500
commit90c81e0b0eda214196cbe4340facbce8cc797ee7 (patch)
treea516944067e6437a88705a3d96157d07de3dae51 /fs/cifs/readdir.c
parentad7a2926b9e53cfb3020d15bdfacacc54e2b63da (diff)
[CIFS] clean up some hard to read ifdefs
Christoph had noticed too many ifdefs in the CIFS code making it hard to read. This patch removes about a quarter of them from the C files in cifs by improving a few key ifdefs in the .h files. Signed-off-by: Steve French <sfrench@us.ibm.com>
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)) {