patch-2.4.22 linux-2.4.22/fs/fat/inode.c
Next file: linux-2.4.22/fs/fat/misc.c
Previous file: linux-2.4.22/fs/ext3/super.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/fs/fat/inode.c
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.21/fs/fat/inode.c linux-2.4.22/fs/fat/inode.c
@@ -637,6 +637,7 @@
sbi->cluster_bits = ffs(logical_sector_size * sbi->cluster_size) - 1;
sbi->fats = b->fats;
sbi->fat_start = CF_LE_W(b->reserved);
+ sbi->prev_free = 0;
if (!b->fat_length && b->fat32_length) {
struct fat_boot_fsinfo *fsinfo;
struct buffer_head *fsinfo_bh;
@@ -675,6 +676,7 @@
sbi->fsinfo_sector);
} else {
sbi->free_clusters = CF_LE_L(fsinfo->free_clusters);
+ sbi->prev_free = CF_LE_L(fsinfo->next_cluster);
}
if (fsinfo_block != 0)
@@ -754,7 +756,6 @@
sb->s_magic = MSDOS_SUPER_MAGIC;
/* set up enough so that it can read an inode */
init_MUTEX(&sbi->fat_lock);
- sbi->prev_free = 0;
cp = opts.codepage ? opts.codepage : 437;
sprintf(buf, "cp%d", cp);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)