]> git.karo-electronics.de Git - linux-beck.git/commit
NFS: Clean up nfs41_check_expired_stateid()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 11 Jul 2012 20:30:14 +0000 (16:30 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 16 Jul 2012 18:49:40 +0000 (14:49 -0400)
commit3e60ffdd36fa518cc1822941dbb011e7a9adf513
tree252c39f5ab56378b06f8bc6ca04e7a6fe9874c02
parenteb64cf964d453f8b559a8c0c2625952dbbcb5838
NFS: Clean up nfs41_check_expired_stateid()

Clean up: Instead of open-coded flag manipulation, use test_bit() and
clear_bit() just like all other accessors of the state->flag field.
This also eliminates several unnecessary implicit integer type
conversions.

To make it absolutely clear what is going on, a number of comments
are introduced.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c