2121 * the superblock.
2222 */
2323
24- #include <linux/smp_lock.h>
2524#include <linux/highuid.h>
2625#include <linux/slab.h>
2726#include <linux/init.h>
@@ -37,7 +36,6 @@ static int sysv_sync_fs(struct super_block *sb, int wait)
3736 unsigned long time = get_seconds (), old_time ;
3837
3938 lock_super (sb );
40- lock_kernel ();
4139
4240 /*
4341 * If we are going to write out the super block,
@@ -52,7 +50,6 @@ static int sysv_sync_fs(struct super_block *sb, int wait)
5250 mark_buffer_dirty (sbi -> s_bh2 );
5351 }
5452
55- unlock_kernel ();
5653 unlock_super (sb );
5754
5855 return 0 ;
@@ -82,8 +79,6 @@ static void sysv_put_super(struct super_block *sb)
8279{
8380 struct sysv_sb_info * sbi = SYSV_SB (sb );
8481
85- lock_kernel ();
86-
8782 if (sb -> s_dirt )
8883 sysv_write_super (sb );
8984
@@ -99,8 +94,6 @@ static void sysv_put_super(struct super_block *sb)
9994 brelse (sbi -> s_bh2 );
10095
10196 kfree (sbi );
102-
103- unlock_kernel ();
10497}
10598
10699static int sysv_statfs (struct dentry * dentry , struct kstatfs * buf )
@@ -275,7 +268,6 @@ int sysv_write_inode(struct inode *inode, int wait)
275268 return - EIO ;
276269 }
277270
278- lock_kernel ();
279271 raw_inode -> i_mode = cpu_to_fs16 (sbi , inode -> i_mode );
280272 raw_inode -> i_uid = cpu_to_fs16 (sbi , fs_high2lowuid (inode -> i_uid ));
281273 raw_inode -> i_gid = cpu_to_fs16 (sbi , fs_high2lowgid (inode -> i_gid ));
@@ -291,7 +283,6 @@ int sysv_write_inode(struct inode *inode, int wait)
291283 for (block = 0 ; block < 10 + 1 + 1 + 1 ; block ++ )
292284 write3byte (sbi , (u8 * )& si -> i_data [block ],
293285 & raw_inode -> i_data [3 * block ]);
294- unlock_kernel ();
295286 mark_buffer_dirty (bh );
296287 if (wait ) {
297288 sync_dirty_buffer (bh );
@@ -315,9 +306,7 @@ static void sysv_delete_inode(struct inode *inode)
315306 truncate_inode_pages (& inode -> i_data , 0 );
316307 inode -> i_size = 0 ;
317308 sysv_truncate (inode );
318- lock_kernel ();
319309 sysv_free_inode (inode );
320- unlock_kernel ();
321310}
322311
323312static struct kmem_cache * sysv_inode_cachep ;
0 commit comments