From: Erez Zadok Subject: [PATCH 12/14] Unionfs: do not over-decrement lower superblock refs on remount Date: Tue, 1 Apr 2008 17:06:54 -0400 Message-ID: <12070840222576-git-send-email-ezk@cs.sunysb.edu> References: <12070840162442-git-send-email-ezk@cs.sunysb.edu> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@ftp.linux.org.uk, hch@infradead.org, Erez Zadok To: akpm@linux-foundation.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:45635 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761060AbYDAVIN (ORCPT ); Tue, 1 Apr 2008 17:08:13 -0400 In-Reply-To: <12070840162442-git-send-email-ezk@cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Signed-off-by: Erez Zadok --- fs/unionfs/super.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index e5cb235..4cddc83 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 */ -- 1.5.2.2