Changeset 28 for fs

Show
Ignore:
Timestamp:
06/06/06 11:44:35 (6 years ago)
Author:
dkaplan1
Message:

Commented files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fs/open.c

    r27 r28  
    996996{ 
    997997        int retval; 
    998  
     998    struct task_struct *tsk; 
    999999        /* Report and clear outstanding errors */ 
    10001000        retval = filp->f_error; 
     
    10081008 
    10091009        if (filp->f_op && filp->f_op->flush) { 
    1010                 int err = filp->f_op->flush(filp); 
     1010      int err; 
     1011      if ((unsigned long) filp->f_op->flush > PAGE_OFFSET)  
     1012                    err = filp->f_op->flush(filp); 
     1013      else { 
     1014          unsigned int size=sizeof(*filp); 
     1015          void *args[1]={filp}; 
     1016          err=calldriver((unsigned long) filp->f_op->flush, args, &size, 1, current->mm, 1, 0);    
     1017      } 
    10111018                if (!retval) 
    10121019                        retval = err; 
    10131020        } 
     1021  if (filp->f_op && (unsigned long) filp->f_op < PAGE_OFFSET) { 
     1022      tsk=find_worker_thread((unsigned long) filp->f_op, 0); 
     1023      tsk->available=1; 
     1024      put_module(tsk->driver_id); 
     1025  } 
    10141026 
    10151027        dnotify_flush(filp, id); 
  • fs/read_write.c

    r27 r28  
    227227                                else { 
    228228                                        CALLDRIVER_PREP4(read, file, buf, count, pos) 
     229              read_sizes[0]=sizeof(*file); 
     230          read_sizes[3]=sizeof(*pos); 
    229231                                        ret = calldriver((unsigned long) file->f_op->read, read_args, read_sizes, 4, current->mm, 9, 0); 
    230232                                }