diff options
author | Steve French <sfrench@us.ibm.com> | 2011-08-09 18:44:44 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-08-11 18:23:45 +0000 |
commit | 789e66612367f9975d704c9e4990025cbbbb45ec (patch) | |
tree | a3c466f3137ac319b9e15656a1d72aabd7050126 /fs/cifs/cifsacl.c | |
parent | e6a99d312687a42c077a9b8cb5e757f186edb1b9 (diff) | |
download | op-kernel-dev-789e66612367f9975d704c9e4990025cbbbb45ec.zip op-kernel-dev-789e66612367f9975d704c9e4990025cbbbb45ec.tar.gz |
[CIFS] Cleanup use of CONFIG_CIFS_STATS2 ifdef to make transport routines more readable
Christoph had requested that the stats related code (in
CONFIG_CIFS_STATS2) be moved into helpers to make code flow more
readable. This patch should help. For example the following
section from transport.c
spin_unlock(&GlobalMid_Lock);
atomic_inc(&ses->server->num_waiters);
wait_event(ses->server->request_q,
atomic_read(&ses->server->inFlight)
< cifs_max_pending);
atomic_dec(&ses->server->num_waiters);
spin_lock(&GlobalMid_Lock);
becomes simpler (with the patch below):
spin_unlock(&GlobalMid_Lock);
cifs_num_waiters_inc(server);
wait_event(server->request_q,
atomic_read(&server->inFlight)
< cifs_max_pending);
cifs_num_waiters_dec(server);
spin_lock(&GlobalMid_Lock);
Reviewed-by: Jeff Layton <jlayton@redhat.com>
CC: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/cifsacl.c')
0 files changed, 0 insertions, 0 deletions