From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Josef 'Jeff' Sipek" Subject: [PATCH 15/21] Unionfs: Decrement totalopens counter on error in unionfs_open Date: Mon, 9 Apr 2007 10:54:06 -0400 Message-ID: <1176130455797-git-send-email-jsipek@cs.sunysb.edu> References: <11761304521844-git-send-email-jsipek@cs.sunysb.edu> Cc: akpm@linux-foundation.org, Erez Zadok , "Josef 'Jeff' Sipek" To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:44042 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933798AbXDIOzK (ORCPT ); Mon, 9 Apr 2007 10:55:10 -0400 In-Reply-To: <11761304521844-git-send-email-jsipek@cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Erez Zadok Signed-off-by: Erez Zadok Signed-off-by: Josef 'Jeff' Sipek --- fs/unionfs/commonfops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 8453f2d..c9df99d 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -509,6 +509,7 @@ int unionfs_open(struct inode *inode, struct file *file) /* freeing the allocated resources, and fput the opened files */ if (err) { + atomic_dec(&UNIONFS_I(dentry->d_inode)->totalopens); for (bindex = bstart; bindex <= bend; bindex++) { hidden_file = unionfs_lower_file_idx(file, bindex); if (!hidden_file) -- 1.5.0.3.268.g3dda