lkml.org 
[lkml]   [2001]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 2.4.10-pre5 fs/dquot.c
From
Date
Hi,

another fix.. just in case it hasn't already been submitted. :]

Best regards,
Ole André

---

--- linux/fs/dquot.c-orig Sat Sep 8 11:17:13 2001
+++ linux/fs/dquot.c Sat Sep 8 11:15:42 2001
@@ -671,8 +671,8 @@
struct file *filp = list_entry(p, struct file, f_list);
struct inode *inode = filp->f_dentry->d_inode;
if (filp->f_mode & FMODE_WRITE && dqinit_needed(inode, type)) {
- struct vfsmount *mnt = mntget(file->f_vfsmnt);
- struct dentry *dentry = dget(file->f_dentry);
+ struct vfsmount *mnt = mntget(filp->f_vfsmnt);
+ struct dentry *dentry = dget(filp->f_dentry);
file_list_unlock();
sb->dq_op->initialize(inode, type);
inode->i_flags |= S_QUOTA;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.072 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site