fat: Update free_clusters even if it is untrusted
commit606e423e43bac0c2f7b85b682eb1ddd2a634586e
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Mon, 28 Apr 2008 09:16:27 +0000 (28 02:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:47 +0000 (28 08:58 -0700)
tree86e7bc56e7e70cf1403aec7fd58d854490b1478f
parent1ae43f826b6cb951fc5b0f9c92372a8d5b63c7f9
fat: Update free_clusters even if it is untrusted

Currently, free_clusters is not updated until it is trusted, because
Windows doesn't update it correctly.

But if user is using FAT driver of Linux, it updates free_clusters
correctly.  Instead, this updates it even if it's untrusted, so if
free_clustes is correct, now keep correct value.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/fatent.c
fs/fat/inode.c
include/linux/msdos_fs.h