]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Refactor nfs_get_client(): initialize nfs_client
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 May 2012 02:45:59 +0000 (22:45 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 May 2012 20:45:47 +0000 (16:45 -0400)
commitc7dea1a51bd1533dc18a110484fdef3f04d4c2b8
treea819ca042219e2764b9042e410ed6f7b4354c59b
parentcc2ffaba2cd1efef10723f61259b6679e8b6c83f
NFS: Refactor nfs_get_client(): initialize nfs_client

Clean up: Continue to rationalize the locking in nfs_get_client() by
moving the logic that handles the case where a matching server IP
address is not found.

When we support server trunking detection, client initialization may
return a different nfs_client struct than was passed to it.  Change
the synopsis of the init_client methods to return an nfs_client.

The client initialization logic in nfs_get_client() is not much more
than a wrapper around ->init_client.  It's simpler to keep the little
bits of error handling in the version-specific init_client methods.

No behavior change is expected.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c
fs/nfs/internal.h
include/linux/nfs_xdr.h