Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2010 12:25:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/ufs/ffs ffs_alloc.c ffs_vfsops.c fs.h src/sys/ufs/ufs ufsmount.h
Message-ID:  <201012291225.oBTCPhZL090762@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2010-12-29 12:25:28 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_alloc.c ffs_vfsops.c fs.h 
    sys/ufs/ufs          ufsmount.h 
  Log:
  SVN rev 216796 on 2010-12-29 12:25:28Z by kib
  
  Add kernel side support for BIO_DELETE/TRIM on UFS.
  
  The FS_TRIM fs flag indicates that administrator requested issuing of
  TRIM commands for the volume. UFS will only send the command to disk
  if the disk reports GEOM::candelete attribute.
  
  Since disk queue is reordered, data block is marked as free in the bitmap
  only after TRIM command completed. Due to need to sleep waiting for
  i/o to finish, TRIM bio_done routine schedules taskqueue to set the
  bitmap bit.
  
  Based on the patch by:  mckusick
  Reviewed by:    mckusick, pjd
  Tested by:      pho
  MFC after:      1 month
  
  Revision  Changes    Path
  1.160     +100 -2    src/sys/ufs/ffs/ffs_alloc.c
  1.380     +15 -0     src/sys/ufs/ffs/ffs_vfsops.c
  1.58      +1 -0      src/sys/ufs/ffs/fs.h
  1.43      +1 -0      src/sys/ufs/ufs/ufsmount.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012291225.oBTCPhZL090762>