mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] fat_lock is used as a mutex, convert it to using the new mutex primitive
The fat code uses the fat_lock always in a mutex way (taking and releasing the lock in the same function), the patch below converts it into the new mutex primitive. Please consider this patch for the code. Signed-off-by: Arjan van de Ven <[email protected]> Acked-by: OGAWA Hirofumi <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f82945dff5
commit
6b9438e132
2 changed files with 5 additions and 4 deletions
|
|
@ -267,19 +267,19 @@ static struct fatent_operations fat32_ops = {
|
|||
|
||||
static inline void lock_fat(struct msdos_sb_info *sbi)
|
||||
{
|
||||
down(&sbi->fat_lock);
|
||||
mutex_lock(&sbi->fat_lock);
|
||||
}
|
||||
|
||||
static inline void unlock_fat(struct msdos_sb_info *sbi)
|
||||
{
|
||||
up(&sbi->fat_lock);
|
||||
mutex_unlock(&sbi->fat_lock);
|
||||
}
|
||||
|
||||
void fat_ent_access_init(struct super_block *sb)
|
||||
{
|
||||
struct msdos_sb_info *sbi = MSDOS_SB(sb);
|
||||
|
||||
init_MUTEX(&sbi->fat_lock);
|
||||
mutex_init(&sbi->fat_lock);
|
||||
|
||||
switch (sbi->fat_bits) {
|
||||
case 32:
|
||||
|
|
|
|||
Loading…
Reference in a new issue