From 21dc59d74307565448e3fed01b8265ee2f0fe42b Mon Sep 17 00:00:00 2001 From: Rachita Kothiyal Date: Sun, 24 Feb 2008 19:05:58 -0500 Subject: [PATCH] Unionfs odf: Remove unnecessary function and macro Signed-off-by: Rachita Kothiyal --- fs/unionfs/fanout.h | 1 - fs/unionfs/union.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h index 2ae30a34d4..20399dd0fa 100644 --- a/fs/unionfs/fanout.h +++ b/fs/unionfs/fanout.h @@ -282,7 +282,6 @@ enum unionfs_dentry_lock_class { UNIONFS_DMUTEX_ROOT, UNIONFS_DMUTEX_PARENT, UNIONFS_DMUTEX_CHILD, - UNIONFS_DMUTEX_WHITEOUT, UNIONFS_DMUTEX_REVAL_PARENT, /* for file/dentry revalidate */ UNIONFS_DMUTEX_REVAL_CHILD, /* for file/dentry revalidate */ }; diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h index a35301c9db..315fe2302c 100644 --- a/fs/unionfs/union.h +++ b/fs/unionfs/union.h @@ -492,13 +492,6 @@ static inline struct dentry *lock_parent(struct dentry *dentry) mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT); return dir; } -static inline struct dentry *lock_parent_wh(struct dentry *dentry) -{ - struct dentry *dir = dget(dentry->d_parent); - - mutex_lock_nested(&dir->d_inode->i_mutex, UNIONFS_DMUTEX_WHITEOUT); - return dir; -} static inline void unlock_dir(struct dentry *dir) { -- 2.43.0