Changeset 897fe13 in rtems


Ignore:
Timestamp:
Oct 22, 2003, 4:31:17 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
08c09e24
Parents:
ae1f243
Message:

2003-10-22 Joel Sherrill <joel@…>

PR 440/filesystem

  • src/dosfs/fat_fat_operations.c: Improve write speed with FAT12 and FAT16 filesystems. Previously merged on 4.6 branch.
Location:
cpukit/libfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/ChangeLog

    rae1f243 r897fe13  
     12003-10-22      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 440/filesystem
     4        * src/dosfs/fat_fat_operations.c: Improve write speed with FAT12 and
     5        FAT16 filesystems. Previously merged on 4.6 branch.
     6
    172003-10-22      Joel Sherrill <joel@OARcorp.com>
    28
  • cpukit/libfs/src/dosfs/fat_fat_operations.c

    rae1f243 r897fe13  
    6464        return rc;
    6565       
    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)
     66    if ((fs_info->vol.type & FAT_FAT32) &&
     67        (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)) 
    6968        cl4find = fs_info->vol.next_cl; 
    7069
     
    134133            if (*cls_added == count)
    135134            {
    136                 /*if (fs_info->vol.type & FAT_FAT32)
    137                 {*/
     135                if (fs_info->vol.type & FAT_FAT32)
     136                {
    138137                    fs_info->vol.next_cl = save_cln;
    139138                    if (fs_info->vol.free_cls != 0xFFFFFFFF)
    140139                        fs_info->vol.free_cls -= (*cls_added);
    141                 /*}*/
     140                }       
    142141                *last_cl = save_cln;   
    143142                fat_buf_release(fs_info);
     
    151150    }
    152151
    153     /*if (fs_info->vol.type & FAT_FAT32)
    154     {*/
     152    if (fs_info->vol.type & FAT_FAT32)
     153    { 
    155154        fs_info->vol.next_cl = save_cln;
    156155        if (fs_info->vol.free_cls != 0xFFFFFFFF)
    157156            fs_info->vol.free_cls -= (*cls_added);   
    158     /*}*/
    159 
     157    }       
    160158    *last_cl = save_cln;
    161159    fat_buf_release(fs_info);
     
    190188        if ( rc != RC_OK )
    191189        {
    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)
     190            if ((fs_info->vol.type & FAT_FAT32) &&
     191                (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE))
    195192                fs_info->vol.free_cls += freed_cls_cnt;
    196 
    197193            fat_buf_release(fs_info);   
    198194            return rc;
     
    207203    }
    208204
    209     /*if (fs_info->vol.type & FAT_FAT32)
    210     {*/
     205    if (fs_info->vol.type & FAT_FAT32)
     206    {
    211207        fs_info->vol.next_cl = chain;
    212208        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
    213209            fs_info->vol.free_cls += freed_cls_cnt;
    214     /*}*/
     210    }   
    215211
    216212    fat_buf_release(fs_info);
Note: See TracChangeset for help on using the changeset viewer.