]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fuse: fix for missing ll_ref on create
authorCasey Bodley <casey@linuxbox.com>
Fri, 7 Feb 2014 20:17:04 +0000 (15:17 -0500)
committerCasey Bodley <casey@linuxbox.com>
Fri, 7 Feb 2014 22:04:28 +0000 (17:04 -0500)
commit16ae4f84e8a7e626986de4538f8a698e2e7674b9
tree4d0cff8198c2c8b554730add4ea537793a47d8cb
parentc1b07149b82e323880f3b42baa80d2943e814166
fuse: fix for missing ll_ref on create

when the 'Inode **outp' argument was added to ll_create(), it was
changed to only take the ll_ref if outp was not NULL. fuse_ll_create()
was calling ll_create() with outp=NULL, and subsequently calling
fuse_reply_create() (which causes fuse to increment the lookup count)
without registering the initial ll_ref

this patch adds a dummy inode pointer i2 to the ll_create() call to
claim our initial reference

Signed-off-by: Casey Bodley <casey@linuxbox.com>
src/client/fuse_ll.cc