svn commit: r206753 - stable/8/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sat Apr 17 11:25:30 UTC 2010
Author: avg
Date: Sat Apr 17 11:25:30 2010
New Revision: 206753
URL: http://svn.freebsd.org/changeset/base/206753
Log:
MFC r206129: vn_stat: use va_blocksize when setting st_blksize
Modified:
stable/8/sys/kern/vfs_vnops.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/kern/vfs_vnops.c
==============================================================================
--- stable/8/sys/kern/vfs_vnops.c Sat Apr 17 11:12:20 2010 (r206752)
+++ stable/8/sys/kern/vfs_vnops.c Sat Apr 17 11:25:30 2010 (r206753)
@@ -788,11 +788,10 @@ vn_stat(vp, sb, active_cred, file_cred,
* "a filesystem-specific preferred I/O block size for this
* object. In some filesystem types, this may vary from file
* to file"
- * Default to PAGE_SIZE after much discussion.
- * XXX: min(PAGE_SIZE, vp->v_bufobj.bo_bsize) may be more correct.
+ * Use miminum/default of PAGE_SIZE (e.g. for VCHR).
*/
- sb->st_blksize = PAGE_SIZE;
+ sb->st_blksize = max(PAGE_SIZE, vap->va_blocksize);
sb->st_flags = vap->va_flags;
if (priv_check(td, PRIV_VFS_GENERATION))
More information about the svn-src-stable-8
mailing list