]> 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>
Mon, 24 Sep 2012 17:24:29 +0000 (13:24 -0400)
commit7eff80ad4204e51962fbdf7574e972aa694481d4
treed1a12c301f04dcaded95e3780901e820fe314a36
parent237cef7a317c47c66ad2450142f4b7b16bc34876
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