projects
/
unionfs-2.6.9.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216eb61
)
Unionfs: unionfs_permission locking fixes
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 23:26:55 +0000
(19:26 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 23:26:55 +0000
(19:26 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/inode.c
b/fs/unionfs/inode.c
index 64a6d3b5b4923361ca21b73cd2a10e910156ea6d..eef83b833ef8cd8a716ee77a8e678afd1abeebb4 100644
(file)
--- a/
fs/unionfs/inode.c
+++ b/
fs/unionfs/inode.c
@@
-782,6
+782,7
@@
static int unionfs_permission(struct inode *inode, int mask,
int bindex, bstart, bend;
const int is_file = !S_ISDIR(inode->i_mode);
const int write_mask = (mask & MAY_WRITE) && !(mask & MAY_READ);
+ struct inode *inode_grabbed = igrab(inode);
if (nd)
unionfs_lock_dentry(nd->dentry, UNIONFS_DMUTEX_CHILD);
@@
-861,6
+862,7
@@
out:
unionfs_check_inode(inode);
if (nd)
unionfs_unlock_dentry(nd->dentry);
+ iput(inode_grabbed);
return err;
}