summaryrefslogtreecommitdiffstats
path: root/fs/adfs
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-09 23:29:35 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-09 23:29:35 +0000
commit35385d7a83b4cae6d5ea5f80f3b3377d94178344 (patch)
tree49494d95dfef31ba4f9a697d31e4028cf65a57bd /fs/adfs
parentd9d8062e7b49943b2a2fb034f817a9fc217fd40f (diff)
Merge with 2.4.0-test3-pre7.
Diffstat (limited to 'fs/adfs')
-rw-r--r--fs/adfs/inode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c
index 5dacc56d6..e55362eb7 100644
--- a/fs/adfs/inode.c
+++ b/fs/adfs/inode.c
@@ -12,6 +12,7 @@
#include <linux/string.h>
#include <linux/locks.h>
#include <linux/mm.h>
+#include <linux/smp_lock.h>
#include "adfs.h"
@@ -354,6 +355,7 @@ void adfs_write_inode(struct inode *inode, int unused)
struct super_block *sb = inode->i_sb;
struct object_info obj;
+ lock_kernel();
obj.file_id = inode->i_ino;
obj.name_len = 0;
obj.parent_id = inode->u.adfs_i.parent_id;
@@ -363,4 +365,5 @@ void adfs_write_inode(struct inode *inode, int unused)
obj.size = inode->i_size;
adfs_dir_update(sb, &obj);
+ unlock_kernel();
}