summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getchar.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-04-03 08:39:00 +0000
committeravg <avg@FreeBSD.org>2010-04-03 08:39:00 +0000
commit91cd4478c28e9e9767d53821be2578fc94be748b (patch)
tree5affb807f39af665aabbffe326d318138b54f36c /lib/libc/stdio/getchar.c
parentd488f0b5490dd5c0372abfb2ea9af844ccef5c83 (diff)
downloadFreeBSD-src-91cd4478c28e9e9767d53821be2578fc94be748b.zip
FreeBSD-src-91cd4478c28e9e9767d53821be2578fc94be748b.tar.gz
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
Diffstat (limited to 'lib/libc/stdio/getchar.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud