]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Balance pnfs_layout_hdr refcount in pnfs_layout_(insert|remove)_lseg
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 00:57:11 +0000 (20:57 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 23:22:08 +0000 (19:22 -0400)
commit755494d3d108ad8266a6d4678f9bd4dc0978dc65
tree200fe2f9b1e07b53c37f53e1df1c8fa98779d77a
parentace6c9165ecb58e954dde3ae9a81c3e14f0fc267
NFSv4.1: Balance pnfs_layout_hdr refcount in pnfs_layout_(insert|remove)_lseg

Ensure that the reference count for pnfs_layout_hdr reverts to the
original value after a call to pnfs_layout_remove_lseg().

Note that the caller is expected to hold a reference to the struct
pnfs_layout_hdr.

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