NFS: Clean up - simplify nfs_lock_request()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 May 2012 17:19:15 +0000 (13:19 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 May 2012 19:17:34 +0000 (15:17 -0400)
commit7ad84aa9448571678c243f0c5ef383fbe5b50f4f
tree7d2baea4ff52fe62b23bf8adbb81a824ee768938
parentd1182b33ed9b62470cb6ab892a8a301542120086
NFS: Clean up - simplify nfs_lock_request()

We only have two places where we need to grab a reference when trying
to lock the nfs_page. We're better off making that explicit.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Fred Isaman <iisaman@netapp.com>
fs/nfs/direct.c
fs/nfs/write.c
include/linux/nfs_page.h