From: Sage Weil Date: Tue, 26 Jul 2011 18:27:48 +0000 (-0700) Subject: ceph: fix bad parent_inode calc in ceph_lookup_open X-Git-Tag: v3.1-rc1~220^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acda76578813ef893004ecad0e5ad2bb6039e5f7;p=pandora-kernel.git ceph: fix bad parent_inode calc in ceph_lookup_open We were always getting NULL here because the intent file f_dentry is always NULL at this point, which means we were always passing NULL to ceph_mdsc_do_request. In reality, this was fine, since this isn't currently ever a write operation that needs to get strung on the dir's unsafe list. Use the dir explicitly, and only pass it if this open has side-effects that a dir fsync should flush. Reviewed-by: Yehuda Sadeh Signed-off-by: Sage Weil --- Reading git-diff-tree failed