From 221aec63b9a3e17c8c63bf8cee73399043f391dd Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 3 Dec 2009 21:23:24 -0500 Subject: [PATCH] patch unionfs-remove-unnecessary-lockdep-off-on-in-rmdir.patch --- fs/unionfs/unlink.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index b6d8e10d2053..273077376a12 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -184,12 +184,8 @@ static int unionfs_rmdir_first(struct inode *dir, struct dentry *dentry, /* avoid destroying the lower inode if the file is in use */ dget(lower_dentry); err = is_robranch(dentry); - if (!err) { - /* see Documentation/filesystems/unionfs/issues.txt */ - lockdep_off(); + if (!err) err = vfs_rmdir(lower_dir_dentry->d_inode, lower_dentry); - lockdep_on(); - } dput(lower_dentry); fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode); -- 2.34.1