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)
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

diff --cc fs/ceph/inode.c
Simple merge