summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2003-08-05 18:05:20 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2003-08-05 18:05:20 +0000
commit92b8547be29774b15c4fe192f921d8f9ebcabba7 (patch)
tree34f1e7d983d5b383143c372d1dc31cd3e1f1e42c /cpukit
parentFixed Change log comments. (diff)
downloadrtems-92b8547be29774b15c4fe192f921d8f9ebcabba7.tar.bz2
2003-08-05 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 439/filesystem * src/dosfs/fat_fat_operations.c: Improve write data speed for DOSFS FAT12/FAT16 systems
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libfs/src/dosfs/fat_fat_operations.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/cpukit/libfs/src/dosfs/fat_fat_operations.c b/cpukit/libfs/src/dosfs/fat_fat_operations.c
index b0afce07ac..a0bdc976fc 100644
--- a/cpukit/libfs/src/dosfs/fat_fat_operations.c
+++ b/cpukit/libfs/src/dosfs/fat_fat_operations.c
@@ -63,8 +63,9 @@ fat_scan_fat_for_free_clusters(
if (count == 0)
return rc;
- if ((fs_info->vol.type & FAT_FAT32) &&
- (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE))
+ /*if ((fs_info->vol.type & FAT_FAT32) &&
+ (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE))*/
+ if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
cl4find = fs_info->vol.next_cl;
/*
@@ -132,12 +133,12 @@ fat_scan_fat_for_free_clusters(
/* have we satisfied request ? */
if (*cls_added == count)
{
- if (fs_info->vol.type & FAT_FAT32)
- {
+ /*if (fs_info->vol.type & FAT_FAT32)
+ {*/
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
fs_info->vol.free_cls -= (*cls_added);
- }
+ /*}*/
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
@@ -149,12 +150,13 @@ fat_scan_fat_for_free_clusters(
cl4find = 2;
}
- if (fs_info->vol.type & FAT_FAT32)
- {
+ /*if (fs_info->vol.type & FAT_FAT32)
+ {*/
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
fs_info->vol.free_cls -= (*cls_added);
- }
+ /*}*/
+
*last_cl = save_cln;
fat_buf_release(fs_info);
return RC_OK;
@@ -187,9 +189,11 @@ fat_free_fat_clusters_chain(
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
if ( rc != RC_OK )
{
- if ((fs_info->vol.type & FAT_FAT32) &&
- (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))
+ /*if ((fs_info->vol.type & FAT_FAT32) &&
+ (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))*/
+ if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
fs_info->vol.free_cls += freed_cls_cnt;
+
fat_buf_release(fs_info);
return rc;
}
@@ -202,12 +206,12 @@ fat_free_fat_clusters_chain(
cur_cln = next_cln;
}
- if (fs_info->vol.type & FAT_FAT32)
- {
+ /*if (fs_info->vol.type & FAT_FAT32)
+ {*/
fs_info->vol.next_cl = chain;
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
fs_info->vol.free_cls += freed_cls_cnt;
- }
+ /*}*/
fat_buf_release(fs_info);
if (rc1 != RC_OK)