commit 328b031bfae098f16b2f3d3e199f19460dd617da
Author: Rachita Kothiyal <[EMAIL PROTECTED]>
Date:   Mon Mar 31 16:09:25 2008 -0400

    Unionfs: do not over-decrement lower superblock refs on remount
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 54c25f9..6741510 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -773,7 +773,7 @@ out_no_change:
        /* grab new lower super references; release old ones */
        for (i = 0; i < new_branches; i++)
                atomic_inc(&new_data[i].sb->s_active);
-       for (i = 0; i < new_branches; i++)
+       for (i = 0; i < sbmax(sb); i++)
                atomic_dec(&UNIONFS_SB(sb)->data[i].sb->s_active);
 
        /* copy new vectors into their correct place */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to