From dd277c68155a6066eb28dc095a74be0435981f2c Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 25 Mar 2008 19:54:47 -0400 Subject: [PATCH] Unionfs: do not over-decrement lower superblock refs on remount Signed-off-by: Erez Zadok --- fs/unionfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index f2dc6392123..b85c96aea15 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 */ -- 2.43.0