patch-2.3.99-pre7 linux/include/linux/quotaops.h
Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu May 11 11:29:44 2000
- Orig file:
v2.3.99-pre6/linux/include/linux/quotaops.h
- Orig date:
Sun Mar 19 18:35:31 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/include/linux/quotaops.h linux/include/linux/quotaops.h
@@ -14,6 +14,8 @@
#if defined(CONFIG_QUOTA)
+#include <linux/smp_lock.h>
+
/*
* declaration of quota_function calls in kernel.
*/
@@ -94,8 +96,10 @@
int error = -EDQUOT;
if (dentry->d_inode->i_sb->dq_op) {
+ lock_kernel();
dentry->d_inode->i_sb->dq_op->initialize(dentry->d_inode, -1);
error = dentry->d_inode->i_sb->dq_op->transfer(dentry, iattr);
+ unlock_kernel();
} else {
error = notify_change(dentry, iattr);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)