patch-2.3.99-pre7 linux/fs/attr.c
Next file: linux/fs/autofs/autofs_i.h
Previous file: linux/fs/affs/symlink.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Mon May 8 14:31:13 2000
- Orig file:
v2.3.99-pre6/linux/fs/attr.c
- Orig date:
Thu Mar 2 14:36:23 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/fs/attr.c linux/fs/attr.c
@@ -8,6 +8,7 @@
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/string.h>
+#include <linux/smp_lock.h>
/* Taken over from the old code... */
@@ -91,6 +92,7 @@
if (!(ia_valid & ATTR_MTIME_SET))
attr->ia_mtime = now;
+ lock_kernel();
if (inode && inode->i_op && inode->i_op->setattr)
error = inode->i_op->setattr(dentry, attr);
else {
@@ -98,5 +100,6 @@
if (!error)
inode_setattr(inode, attr);
}
+ unlock_kernel();
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)