git: devfs - Fix FREEBLKS

Alex Hornung alexh at crater.dragonflybsd.org
Fri Nov 19 07:28:59 PST 2010


commit bf390b25e6ef64c1fa868d8d60845d9627b40472
Author: Alex Hornung <ahornung at gmail.com>
Date:   Fri Nov 19 14:49:17 2010 +0000

    devfs - Fix FREEBLKS
    
    * Since vn and md were changed to use the disk subsystem they
      essentially haven't been able to receive any BUF_CMD_FREEBLKS since
      their D_CANFREE flag was not propagated through the disk subsystem.
    
    * Fix this by making the flag specific to the device via SI_CANFREE and
      propagating the D_CANFREE of even *underlying*/covered devices to the
      top-level device's SI_CANFREE.

Summary of changes:
 sys/sys/conf.h              |    1 +
 sys/vfs/devfs/devfs_core.c  |   12 ++++++++++++
 sys/vfs/devfs/devfs_vnops.c |    2 +-
 3 files changed, 14 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bf390b25e6ef64c1fa868d8d60845d9627b40472


-- 
DragonFly BSD source repository





More information about the Commits mailing list