GIT: unionfs2-2.6.9.y: Unionfs: do not over-decrement lower superblock refs on remount

Erez_Zadok ezk at fsl.cs.sunysb.edu
Tue Mar 25 21:41:30 EDT 2008


commit 1ad3ddfad31c82f676951edd82eefdc3dde43ef9
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date:   Tue Mar 25 19:54:49 2008 -0400

    Unionfs: do not over-decrement lower superblock refs on remount
    
    Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 3dac373..0d2cdf2 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -744,7 +744,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 */


More information about the unionfs-cvs mailing list