Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2010 08:39:00 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern vfs_vnops.c
Message-ID:  <201004030839.o338dFDM003766@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

avg         2010-04-03 08:39:00 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_vnops.c 
  Log:
  SVN rev 206129 on 2010-04-03 08:39:00Z by avg
  
  vn_stat: take into account va_blocksize when setting st_blksize
  
  As currently st_blksize is always PAGE_SIZE, it is playing safe to not
  use any smaller value.  For some cases this might not be optimal, but
  at least nothing should get broken.
  
  Generally I don't expect this commit to change much for the following
  reasons (in case of VREG, VDIR):
  - application I/O and physical I/O are sufficiently decoupled by
    filesystem code, buffer cache code, cluster and read-ahead logic
  - not all applications use st_blksize as a hint, some use f_iosize, some
    use fixed block sizes
  
  I expect writes to the middle of files on ZFS to benefit the most from
  this change.
  
  Silence from:   fs@
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.295     +2 -3      src/sys/kern/vfs_vnops.c



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