Changeset 2b30225 in rtems for cpukit/libfs/src/imfs/memfile.c


Ignore:
Timestamp:
Oct 2, 2002, 5:42:39 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b32fe79
Parents:
0381a8d
Message:

2002-10-02 Jennifer Averett <jennifer@…>

  • src/imfs/memfile.c: Fixed case where last close of unlinked file did not remove the resources associated with that file. Reported by Till Straumann <strauman@…> on the mailing list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/memfile.c

    r0381a8d r2b30225  
    7474);
    7575
     76int  memfile_check_rmnod( IMFS_jnode_t *the_jnode );
     77
    7678void *memfile_alloc_block(void);
    7779
     
    123125    iop->offset = the_jnode->info.file.size;
    124126
     127  memfile_check_rmnod( the_jnode );
    125128  return 0;
    126129}
     
    11091112  IMFS_update_ctime( the_jnode );
    11101113
     1114  return memfile_check_rmnod( the_jnode );
     1115}
     1116
     1117
     1118int  memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
     1119
    11111120  /*
    11121121   * The file cannot be open and the link must be less than 1 to free.
     
    11191128     */
    11201129
    1121     if ( rtems_filesystem_current.node_access == pathloc->node_access )
     1130    if ( rtems_filesystem_current.node_access == the_jnode )
    11221131       rtems_filesystem_current.node_access = NULL;
    11231132
     
    11321141
    11331142  return 0;
    1134 
    1135 }
    1136 
    1137 
     1143}
     1144
     1145
Note: See TracChangeset for help on using the changeset viewer.