From: Trond Myklebust Date: Fri, 25 Jul 2014 11:34:19 +0000 (-0400) Subject: nfsd: simplify stateid allocation and file handling X-Git-Tag: omap-for-v3.17/fixes-against-rc2~101^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83388341b825e03dafa38141ec113b43f9d61d0;p=pandora-kernel.git nfsd: simplify stateid allocation and file handling Don't allow stateids to clear the open file pointer until they are being destroyed. In a later patches we'll want to rely on the fact that we have a valid file pointer when dealing with the stateid and this will save us from having to do a lot of NULL pointer checks before doing so. Also, move to allocating stateids with kzalloc and get rid of the explicit zeroing of fields. Signed-off-by: Trond Myklebust Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed