Fix _fat_bmap() locking
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Wed, 11 Mar 2009 17:03:23 +0000 (02:03 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Mar 2009 19:04:18 +0000 (12:04 -0700)
commit3a95ea1155c5d44aa58dde2f64f0ddafe27fd1fb
treede6d6392c58a37a7f13bacf899b3f56c32fabcf4
parentad3bdefe877afb47480418fdb05ecd42842de65e
Fix _fat_bmap() locking

On swapon() path, it has already i_mutex. So, this uses i_alloc_sem
instead of it.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reported-by: Laurent GUERBY <laurent@guerby.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c