]> git.baikalelectronics.ru Git - kernel.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)
commit6a3970f8b08da0cd99714df32bd7093c11585bf4
tree252c39f5ab56378b06f8bc6ca04e7a6fe9874c02
parent7d19ad1fc5073084bb08b53deeb6b85f7578ec4a
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