From: Erez Zadok Date: Tue, 25 Mar 2008 23:54:32 +0000 (-0400) Subject: Unionfs: do not over-decrement lower superblock refs on remount X-Git-Tag: unionfs-2.3.1~1 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=912b9cb515c9c8a80f3822ede909d6515e549c76;p=unionfs-2.6.23.y.git Unionfs: do not over-decrement lower superblock refs on remount Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 32a5887cabd..8fc49e36e81 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -745,7 +745,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 */