]> 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>
Mon, 24 Sep 2012 17:24:31 +0000 (13:24 -0400)
commitc2af2bed6acf8790d61454693b33690d496b3b06
treede36eae4fe6d7ef9de3e5bed3b84c169a38c6cee
parentf4557b77d2d6ecb570d4cce13a1b727bfc882176
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