GIT: unionfs2-2.6.27.y: Unionfs: Decrement totalopens counter on error in unionfs_open
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:00 EDT 2010
commit 50c2397c8aacc9a001d3e6f90aa59b7e3eeafb9b
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Thu Mar 22 19:47:43 2007 -0400
Unionfs: Decrement totalopens counter on error in unionfs_open
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
Signed-off-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
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)
More information about the unionfs-cvs
mailing list