diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-09 23:29:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-09 23:29:35 +0000 |
commit | 35385d7a83b4cae6d5ea5f80f3b3377d94178344 (patch) | |
tree | 49494d95dfef31ba4f9a697d31e4028cf65a57bd /fs/adfs | |
parent | d9d8062e7b49943b2a2fb034f817a9fc217fd40f (diff) |
Merge with 2.4.0-test3-pre7.
Diffstat (limited to 'fs/adfs')
-rw-r--r-- | fs/adfs/inode.c | 3 |
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(); } |