use ->d_lock instead of dcache_lock in vfat_revalidate (2/6)
PATCH 1/1 use ->d_lock instead of dcache_lock in vfat_revalidate (2/6)
Hi,
This uses more fine granularity ->d_lock than ->dcache_lock for ->d_parent with d_move() race.
Please apply.
linux-2.6.0-test6-hirofumi/fs/vfat/namei.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fs/vfat/namei.c renamed from fs/vfat/namei.c~fat_d_lock-for-d_move +2 -2
@@ -82,10 +82,10 @@ static int vfat_revalidate(struct dentry*/ ret =0 ; else { -spin_lock (&dcache_lock); +spin_lock (&dentry->d_lock);if (dentry->d_time != dentry->d_parent->d_inode->i_version) ret =0 ; -spin_unlock (&dcache_lock); +spin_unlock (&dentry->d_lock); }return ret; }
_
Signature · 1 line
OGAWA Hirofumi <[email protected]>