mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sysv: drop lock/unlock super
Removed lock/unlock super. Added a new private s_lock mutex. Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f6e12dc4fc
commit
c07cb01c45
5 changed files with 20 additions and 18 deletions
|
@ -36,7 +36,7 @@ static int sysv_sync_fs(struct super_block *sb, int wait)
|
|||
struct sysv_sb_info *sbi = SYSV_SB(sb);
|
||||
unsigned long time = get_seconds(), old_time;
|
||||
|
||||
lock_super(sb);
|
||||
mutex_lock(&sbi->s_lock);
|
||||
|
||||
/*
|
||||
* If we are going to write out the super block,
|
||||
|
@ -51,7 +51,7 @@ static int sysv_sync_fs(struct super_block *sb, int wait)
|
|||
mark_buffer_dirty(sbi->s_bh2);
|
||||
}
|
||||
|
||||
unlock_super(sb);
|
||||
mutex_unlock(&sbi->s_lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue