Re: [PATCH 2/2] fat: optimize fat_count_free_clusters()

2007-11-05 Thread OGAWA Hirofumi
Andrew Morton <[EMAIL PROTECTED]> writes: >> +/* 128kb is the whole sectors for FAT12 and FAT16 */ >> +#define FAT_READA_SIZE (128 * 1024) >> + >> +static void fat_ent_reada(struct super_block *sb, struct fat_entry *fatent, >> + unsigned long reada_blocks) >> +{ >

Re: [PATCH 2/2] fat: optimize fat_count_free_clusters()

2007-11-05 Thread Andrew Morton
On Mon, 05 Nov 2007 07:09:00 +0900 OGAWA Hirofumi <[EMAIL PROTECTED]> wrote: > On large partition, scanning the free clusters is very slow if users > doesn't use "usefree" option. > > For optimizing it, this patch uses sb_breadahead() to read of FAT > sectors. On some user's 15GB partition, this