From: Alex Elder Date: Wed, 4 Jan 2012 22:30:15 +0000 (-0600) Subject: ceph: always initialize the dentry in open_root_dentry() X-Git-Tag: v3.3-rc1~79^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46cfba5363a163851dc768f717f34185527a472;p=pandora-kernel.git ceph: always initialize the dentry in open_root_dentry() When open_root_dentry() gets a dentry via d_obtain_alias() it does not get initialized. If the dentry obtained came from the cache, this is OK. But if not, the result is an improperly initialized dentry. To fix this, call ceph_init_dentry() regardless of which path produced the dentry. That function returns immediately for a dentry that is already initialized, it is safe to use either way. (Credit to Sage, who suggested this fix.) Signed-off-by: Alex Elder --- Reading git-diff-tree failed