Whamcloud - gitweb
LU-1113 llite: hide DCACHE_LUSTRE_INVALID in ll_dentry_data
authorPeng Tao <tao.peng@emc.com>
Thu, 14 Jun 2012 06:10:22 +0000 (14:10 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Nov 2012 21:36:04 +0000 (16:36 -0500)
commit12d9fb1832cdbd7566cc694fc51950345649d321
tree6ffe28188dfa943cd63d215347e2433e8ae4e9fb
parentbb46105ffae1f1f6716d6d0a54180665f1a39acc
LU-1113 llite: hide DCACHE_LUSTRE_INVALID in ll_dentry_data

DCACHE_LUSTRE_INVALID is lustre private flag in vfs layer.
Replace it with dentry->d_fsdata->lld_invalid so that it won't
conflict with VFS flags.

After dcache scalability patch, dentry->d_fsdata is always set
before dentry is materised/rehashed. So if a dentry's d_fsdata
is not set, then it is not hashed/materised. The patch make use
of the fact and treat such dentry as invalid as well. It is
necessary because d_lustre_invalidate() can be called in
ll_invalidate_negative_children() and finds unmaterised/unhashed
dentries.

Also drop all vfs_races patches as they are no longer needed.

Plus two minor cleanups.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: I655154b8807440c99574ad6b865bd550cbc145f1
Reviewed-on: http://review.whamcloud.com/2407
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
lustre/kernel_patches/patches/vfs_races-2.6-rhel5.patch [deleted file]
lustre/kernel_patches/patches/vfs_races-2.6.22-vanilla.patch [deleted file]
lustre/kernel_patches/patches/vfs_races-2.6.32-rhel6.patch [deleted file]
lustre/kernel_patches/series/2.6-rhel5.series
lustre/kernel_patches/series/2.6-rhel6.series
lustre/kernel_patches/series/2.6-sles11.series
lustre/llite/dcache.c
lustre/llite/llite_internal.h
lustre/llite/namei.c