summaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-08-24 13:59:35 -0700
committerSteve French <sfrench@us.ibm.com>2005-08-24 13:59:35 -0700
commita45443475835ab4d1c753159812aca21b5c333a3 (patch)
tree308c2535875dec62bdafae3d3ed2a98af588d608 /fs/cifs/misc.c
parent6b8edfe0f918e7585acb3bd63f62ff56e32dd3d2 (diff)
downloadblackbird-op-linux-a45443475835ab4d1c753159812aca21b5c333a3.tar.gz
blackbird-op-linux-a45443475835ab4d1c753159812aca21b5c333a3.zip
CIFS: Reduce CONFIG_CIFS_STATS ifdefs
Make cifs_stats code conditional in the header files to avoid ifdefs in the main code. Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r--fs/cifs/misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 40d50b77bfe7..fafbdbfa63a1 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -520,9 +520,7 @@ is_valid_oplock_break(struct smb_hdr *buf)
list_for_each(tmp, &GlobalTreeConnectionList) {
tcon = list_entry(tmp, struct cifsTconInfo, cifsConnectionList);
if (tcon->tid == buf->Tid) {
-#ifdef CONFIG_CIFS_STATS
- atomic_inc(&tcon->num_oplock_brks);
-#endif
+ cifs_stats_inc(&tcon->num_oplock_brks);
list_for_each(tmp1,&tcon->openFileList){
netfile = list_entry(tmp1,struct cifsFileInfo,
tlist);
OpenPOWER on IntegriCloud