From: OGAWA Hirofumi Date: Thu, 6 Nov 2008 20:53:57 +0000 (-0800) Subject: fat: mmu_private race fix X-Git-Tag: v2.6.28-rc4~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bdf67eb1631f30e2f3f5d49e4007c76e88877a8;p=pandora-kernel.git fat: mmu_private race fix mmu_private is 64bits value, hence it's not atomic to update. So, the access rule for mmu_private is we must hold ->i_mutex. But, fat_get_block() path doesn't follow the rule on non-allocation path. This fixes by using i_size instead if non-allocation path. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed