From: Rachita Kothiyal Date: Thu, 10 Jan 2008 12:05:55 +0000 (-0500) Subject: Remove unnecessary locking of sb in check_empty and odf_cache_dir X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=43b15a3587923df965092a97f63bc3468cf9d966;p=unionfs-odf.git Remove unnecessary locking of sb in check_empty and odf_cache_dir Signed-off-by: Rachita Kothiyal --- diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c index f0551481fa..94d9441086 100644 --- a/fs/unionfs/dirhelper.c +++ b/fs/unionfs/dirhelper.c @@ -219,8 +219,6 @@ int check_empty(struct dentry *dentry, struct unionfs_dir_state **namelist) int bindex, bstart, bend, bopaque; sb = dentry->d_sb; - unionfs_read_lock(sb); - BUG_ON(!S_ISDIR(dentry->d_inode->i_mode)); @@ -295,7 +293,6 @@ out: kfree(buf); } - unionfs_read_unlock(sb); return err; } @@ -314,7 +311,6 @@ int odf_cache_dir(struct dentry *d_upper, struct dentry *d_odf, struct iattr attr; sb = d_upper->d_sb; - unionfs_read_lock(sb); err = unionfs_partial_lookup(d_upper); if (err) @@ -441,7 +437,6 @@ out: } out_sb: - unionfs_read_unlock(sb); return err; }