]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Remove redundant reference to the pnfs_layout_hdr
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 20 Sep 2012 21:02:32 +0000 (17:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 23:21:42 +0000 (19:21 -0400)
commit9169208a6047fd3928a6619cb0a8d287f8c580cd
tree46aa6dd532ab2532e9e1659255f3f300714c2a73
parent0e89f13274749e0bbfd00fe8c3b7d91e3a44f68b
NFSv4.1: Remove redundant reference to the pnfs_layout_hdr

Each layout segment already holds a reference to the pnfs_layout_hdr,
so there is no need to hold an extra reference that is released once
the last layout segment is freed.

Ensure that pnfs_find_alloc_layout() always returns a reference
to the pnfs_layout_hdr, which will be matched by the final call to
pnfs_put_layout_hdr() in pnfs_update_layout().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c