]> git.baikalelectronics.ru Git - kernel.git/commit
hpfs: remember free space
authorMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Tue, 28 Jan 2014 23:10:44 +0000 (00:10 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 3 Feb 2014 00:24:07 +0000 (16:24 -0800)
commitbbeeb2e1f1dcdc409fed8eda49fc8d51c6735f81
treede283447508e3d0ef3645f65f5adb5f9becdaf30
parent876703a7bfe1d4a4183abd90fa92d1d6fcca6c1e
hpfs: remember free space

Previously, hpfs scanned all bitmaps each time the user asked for free
space using statfs.  This patch changes it so that hpfs scans the
bitmaps only once, remembes the free space and on next invocation of
statfs it returns the value instantly.

New versions of wine are hammering on the statfs syscall very heavily,
making some games unplayable when they're stored on hpfs, with load
times in minutes.

This should be backported to the stable kernels because it fixes
user-visible problem (excessive level load times in wine).

Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hpfs/alloc.c
fs/hpfs/hpfs_fn.h
fs/hpfs/super.c