]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kclient: add dput to getattr for do_lookup splice case
authorSage Weil <sage@newdream.net>
Mon, 20 Oct 2008 23:55:49 +0000 (16:55 -0700)
committerSage Weil <sage@newdream.net>
Mon, 20 Oct 2008 23:57:05 +0000 (16:57 -0700)
commitd53f5a9c1a73344b56888a51e7433f74ef9f5e7b
treefe3b8d6bf6326183bea83c36ebc84d038f83aebd
parent4da935b18675630914eb71b83cd01482a9e163ef
kclient: add dput to getattr for do_lookup splice case

If do_lookup returns a dentry, it has a new ref on it.  Make sure we
dput() that, since we don't actually need it.  (In contrast, if there is no
splice, do_lookup does not dget, as the caller has a ref on the dentry it
provided in the first place.)
src/kernel/inode.c