projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971cb05
)
Unionfs: ensure we have lower dentries in d_iput
author
Erez Zadok
<ezk@cs.sunysb.edu>
Thu, 10 Jan 2008 00:07:29 +0000
(19:07 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:37:29 +0000
(22:37 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/dentry.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/dentry.c
b/fs/unionfs/dentry.c
index d9696409ea2f1451aae80d78be5e16232582a5af..cd15243f04599e0cb9dc9b9a31f0741a619c7f09 100644
(file)
--- a/
fs/unionfs/dentry.c
+++ b/
fs/unionfs/dentry.c
@@
-507,9
+507,10
@@
static void unionfs_d_iput(struct dentry *dentry, struct inode *inode)
{
int bindex, rc;
+ BUG_ON(!dentry);
unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD);
- if (dbstart(dentry) < 0)
+ if (
!UNIONFS_D(dentry) ||
dbstart(dentry) < 0)
goto drop_lower_inodes;
for (bindex = dbstart(dentry); bindex <= dbend(dentry); bindex++) {
if (unionfs_lower_mnt_idx(dentry, bindex)) {