alistair23-linux/fs/ceph
Alex Elder d46cfba536 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 <aelder@sgi.com>
2012-01-11 16:28:25 -08:00
..
addr.c ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
caps.c ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: explicitly reference rename old_dentry parent dir in request 2011-07-26 11:31:14 -07:00
dir.c ceph: avoid iput() while holding spinlock in ceph_dir_fsync 2012-01-10 08:57:02 -08:00
export.c ceph: avoid useless dget/dput in encode_fh 2012-01-10 08:57:00 -08:00
file.c ceph: fix SEEK_CUR, SEEK_SET regression 2011-12-13 09:19:26 -08:00
inode.c ceph: dereference pointer after checking for NULL 2012-01-10 08:56:59 -08:00
ioctl.c ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
ioctl.h ceph: document ioctls 2011-10-25 16:10:15 -07:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: unwind canceled flock state 2011-06-07 21:36:45 -07:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c ceph: remove unnecessary d_fsdata conditional checks 2012-01-10 08:56:56 -08:00
mds_client.h ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: always initialize the dentry in open_root_dentry() 2012-01-11 16:28:25 -08:00
super.h ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00
xattr.c ceph: use i_ceph_lock instead of i_lock 2011-12-07 10:46:44 -08:00