summaryrefslogtreecommitdiffstats
path: root/fs/cifs/readdir.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-02-12 20:32:36 +0000
committerSteve French <sfrench@us.ibm.com>2008-02-12 20:32:36 +0000
commit90c81e0b0eda214196cbe4340facbce8cc797ee7 (patch)
treea516944067e6437a88705a3d96157d07de3dae51 /fs/cifs/readdir.c
parentad7a2926b9e53cfb3020d15bdfacacc54e2b63da (diff)
downloadop-kernel-dev-90c81e0b0eda214196cbe4340facbce8cc797ee7.zip
op-kernel-dev-90c81e0b0eda214196cbe4340facbce8cc797ee7.tar.gz
[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 89aae6c..32b445e 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)
cFYI(1, ("empty dir"));
}
}
+#else
+static inline void dump_cifs_file_struct(struct file *file, char *label)
+{
+}
#endif /* DEBUG2 */
/* 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,
. and .. for the root of a drive and for those we need
to start two entries earlier */
-#ifdef CONFIG_CIFS_DEBUG2
dump_cifs_file_struct(file, "In fce ");
-#endif
if (((index_to_find < cifsFile->srch_inf.index_of_last_entry) &&
is_dir_changed(file)) ||
(index_to_find < first_entry_in_buffer)) {
OpenPOWER on IntegriCloud