From c7b903cc7d8a3baf24b69d55ac8caa6695491f5a Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 25 Mar 2008 17:56:12 -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 e5cb2355938..4cddc832c80 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -755,7 +755,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.34.1