ceph: initialize inode before instantiating dentry
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 5 Dec 2013 04:38:59 +0000 (12:38 +0800)
committerSage Weil <sage@inktank.com>
Fri, 13 Dec 2013 17:11:36 +0000 (09:11 -0800)
commit86b58d13134ef14f09f8c8f37797ccc37cf823a3
treeccb2a0ec594ef9f746bc1b97d6733b6b9dfbc948
parent374b105797c3d4f29c685f3be535c35f5689b30e
ceph: initialize inode before instantiating dentry

commit b18825a7c8 (Put a small type field into struct dentry::d_flags)
put a type field into struct dentry::d_flags. __d_instantiate() set the
field by checking inode->i_mode. So we should initialize inode before
instantiating dentry when handling mds reply.

Fixes: http://tracker.ceph.com/issues/6930
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/inode.c