cvs commit: src/sys/kern vfs_cluster.c

Simon Schubert corecode at crater.dragonflybsd.org
Fri Jul 14 12:25:22 PDT 2006


corecode    2006/07/14 12:23:39 PDT

DragonFly src repository

  Modified files:
    sys/kern             vfs_cluster.c 
  Log:
  Fix two bugs in cluster_read:
  - brelse rbp with B_INVAL set in case of a VOP_BMAP() error
  
  - move the read-ahead after starting the real read for bp, so that it
    can be skipped if an error occured in the reading of bp.
  
    Before this commit rbp might have been a CLUSTER and didn't get special
    treatment for freeing, which resulted in a panic.
  
  Reported-by: swildner
  
  Revision  Changes    Path
  1.26      +60 -67    src/sys/kern/vfs_cluster.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cluster.c.diff?r1=1.25&r2=1.26&f=u





More information about the Commits mailing list