]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: convert cifsFileInfo->count to non-atomic counter
authorJeff Layton <jlayton@redhat.com>
Fri, 15 Oct 2010 19:34:06 +0000 (15:34 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 25 Oct 2010 00:18:59 +0000 (00:18 +0000)
commit5f6dbc9e4afe4d1d39e85de3ac2720a2042ad191
tree8e97fe18b6d0824981fd377b2ff35042da264bb4
parent229aebb873e29726b91e076161649cf45154b0bf
cifs: convert cifsFileInfo->count to non-atomic counter

The count for cifsFileInfo is currently an atomic, but that just adds
complexity for little value. We generally need to hold cifs_file_list_lock
to traverse the lists anyway so we might as well make this counter
non-atomic and simply use the cifs_file_list_lock to protect it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/file.c