git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[GFS2] Fix a ref count bug and other clean ups
[safe/jmp/linux-2.6]
/
fs
/
gfs2
/
dir.c
diff --git
a/fs/gfs2/dir.c
b/fs/gfs2/dir.c
index
66917f2
..
316eed6
100644
(file)
--- a/
fs/gfs2/dir.c
+++ b/
fs/gfs2/dir.c
@@
-789,6
+789,8
@@
static struct gfs2_dirent *gfs2_dirent_search(struct inode *inode,
if (error)
return ERR_PTR(error);
dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL);
+ brelse(bh);
+
got_dent:
*pbh = bh;
return dent;