Whamcloud - gitweb
- do an mntget() before dentry_open()
authorpschwan <pschwan>
Tue, 28 Jan 2003 04:11:16 +0000 (04:11 +0000)
committerpschwan <pschwan>
Tue, 28 Jan 2003 04:11:16 +0000 (04:11 +0000)
lustre/mds/mds_open.c

index 126e7a4..dbd3231 100644 (file)
@@ -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));