commit 45c430d285648ef06c92af7684c807b369a64c54
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date:   Thu Jan 10 07:05:55 2008 -0500

    Remove unnecessary locking of sb in check_empty and odf_cache_dir
    
    Signed-off-by: Rachita Kothiyal <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dirhelper.c b/fs/unionfs/dirhelper.c
index f055148..94d9441 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;
 }
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to