From: Erez Zadok Date: Fri, 21 Dec 2007 04:10:19 +0000 (-0500) Subject: Unionfs: remove unnecessary lock when deleting whiteouts X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=f6ed8c23613ffd24a12d580a53854c64bdc55b71;p=unionfs-2.6.39.y.git Unionfs: remove unnecessary lock when deleting whiteouts Lockdep complained, because we eventually call vfs_unlink which'd grab the necessary locks. Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c index 2e52fc3a162..b40090a4039 100644 --- a/fs/unionfs/dirhelper.c +++ b/fs/unionfs/dirhelper.c @@ -110,7 +110,6 @@ int delete_whiteouts(struct dentry *dentry, int bindex, lower_dir = lower_dir_dentry->d_inode; BUG_ON(!S_ISDIR(lower_dir->i_mode)); - mutex_lock(&lower_dir->i_mutex); if (!permission(lower_dir, MAY_WRITE | MAY_EXEC, NULL)) { err = do_delete_whiteouts(dentry, bindex, namelist); } else { @@ -120,7 +119,6 @@ int delete_whiteouts(struct dentry *dentry, int bindex, run_sioq(__delete_whiteouts, &args); err = args.err; } - mutex_unlock(&lower_dir->i_mutex); out: return err;