diff options
author | Marco Stornelli <marco.stornelli@gmail.com> | 2012-10-06 06:40:03 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-09 23:33:38 -0400 |
commit | e40b34c7921534a46f7bae23ec6646d3d9c2c7b2 (patch) | |
tree | 84a7ffac7bce215827fbde733aad964a5e38eaa4 /fs/fat/dir.c | |
parent | 67e2c19a3bcd32172c1d67294a1d6bb4bc60ca77 (diff) |
fat: 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>
Diffstat (limited to 'fs/fat/dir.c')
-rw-r--r-- | fs/fat/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index bca6d0a1255e..2a182342442e 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c | |||
@@ -571,7 +571,7 @@ static int __fat_readdir(struct inode *inode, struct file *filp, void *dirent, | |||
571 | int short_len = 0, fill_len = 0; | 571 | int short_len = 0, fill_len = 0; |
572 | int ret = 0; | 572 | int ret = 0; |
573 | 573 | ||
574 | lock_super(sb); | 574 | mutex_lock(&sbi->s_lock); |
575 | 575 | ||
576 | cpos = filp->f_pos; | 576 | cpos = filp->f_pos; |
577 | /* Fake . and .. for the root directory. */ | 577 | /* Fake . and .. for the root directory. */ |
@@ -693,7 +693,7 @@ fill_failed: | |||
693 | if (unicode) | 693 | if (unicode) |
694 | __putname(unicode); | 694 | __putname(unicode); |
695 | out: | 695 | out: |
696 | unlock_super(sb); | 696 | mutex_unlock(&sbi->s_lock); |
697 | return ret; | 697 | return ret; |
698 | } | 698 | } |
699 | 699 | ||