Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cf407
)
- do an mntget() before dentry_open()
author
pschwan
<pschwan>
Tue, 28 Jan 2003 04:11:16 +0000
(
04:11
+0000)
committer
pschwan
<pschwan>
Tue, 28 Jan 2003 04:11:16 +0000
(
04:11
+0000)
lustre/mds/mds_open.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_open.c
b/lustre/mds/mds_open.c
index
126e7a4
..
dbd3231
100644
(file)
--- a/
lustre/mds/mds_open.c
+++ b/
lustre/mds/mds_open.c
@@
-163,6
+163,7
@@
int mds_open(struct mds_update_record *rec, int offset,
flags = rec->ur_flags;
/* dentry_open does a dput(de) and mntput(mnt) on error */
+ mntget(mnt);
file = dentry_open(dchild, mnt, flags & ~O_DIRECT & ~O_TRUNC);
if (IS_ERR(file))
GOTO(out_ldput, req->rq_status = PTR_ERR(file));