From e91a70f701af9504682a57f9dab5bc97c77f4260 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 22 Mar 2007 19:47:43 -0400 Subject: [PATCH] Unionfs: Decrement totalopens counter on error in unionfs_open Signed-off-by: Erez Zadok Signed-off-by: Josef 'Jeff' Sipek --- fs/unionfs/commonfops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 8453f2dbae41..c9df99dea83e 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) -- 2.43.0