Changeset 92b8547b in rtems


Ignore:
Timestamp:
08/05/03 18:05:20 (21 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d29cb93
Parents:
45b185e
Message:

2003-08-05 Thomas Doerfler <Thomas.Doerfler@…>

PR 439/filesystem

  • src/dosfs/fat_fat_operations.c: Improve write data speed for DOSFS FAT12/FAT16 systems
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat_fat_operations.c

    r45b185e r92b8547b  
    6464        return rc;
    6565       
    66     if ((fs_info->vol.type & FAT_FAT32) &&
    67         (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)) 
     66    /*if ((fs_info->vol.type & FAT_FAT32) &&
     67        (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE))*/
     68    if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
    6869        cl4find = fs_info->vol.next_cl; 
    6970
     
    133134            if (*cls_added == count)
    134135            {
    135                 if (fs_info->vol.type & FAT_FAT32)
    136                 {
     136                /*if (fs_info->vol.type & FAT_FAT32)
     137                {*/
    137138                    fs_info->vol.next_cl = save_cln;
    138139                    if (fs_info->vol.free_cls != 0xFFFFFFFF)
    139140                        fs_info->vol.free_cls -= (*cls_added);
    140                 }       
     141                /*}*/
    141142                *last_cl = save_cln;   
    142143                fat_buf_release(fs_info);
     
    150151    }
    151152
    152     if (fs_info->vol.type & FAT_FAT32)
    153     { 
     153    /*if (fs_info->vol.type & FAT_FAT32)
     154    {*/
    154155        fs_info->vol.next_cl = save_cln;
    155156        if (fs_info->vol.free_cls != 0xFFFFFFFF)
    156157            fs_info->vol.free_cls -= (*cls_added);   
    157     }       
     158    /*}*/
     159
    158160    *last_cl = save_cln;
    159161    fat_buf_release(fs_info);
     
    188190        if ( rc != RC_OK )
    189191        {
    190             if ((fs_info->vol.type & FAT_FAT32) &&
    191                 (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))
     192            /*if ((fs_info->vol.type & FAT_FAT32) &&
     193                (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))*/
     194              if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    192195                fs_info->vol.free_cls += freed_cls_cnt;
     196
    193197            fat_buf_release(fs_info);   
    194198            return rc;
     
    203207    }
    204208
    205     if (fs_info->vol.type & FAT_FAT32)
    206     {
     209    /*if (fs_info->vol.type & FAT_FAT32)
     210    {*/
    207211        fs_info->vol.next_cl = chain;
    208212        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    209213            fs_info->vol.free_cls += freed_cls_cnt;
    210     }   
     214    /*}*/
    211215
    212216    fat_buf_release(fs_info);
Note: See TracChangeset for help on using the changeset viewer.