summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-01-25 16:39:57 +0000
committerphk <phk@FreeBSD.org>2002-01-25 16:39:57 +0000
commitf8c5229a8926cad7188085666cbc3854f6cd4ed6 (patch)
tree42518a8d1c2dd667b23bc2d4418b954b8edfd09a /sys
parentffe127d198476c77e712ea72cbd62631f4234dd1 (diff)
downloadFreeBSD-src-f8c5229a8926cad7188085666cbc3854f6cd4ed6.zip
FreeBSD-src-f8c5229a8926cad7188085666cbc3854f6cd4ed6.tar.gz
Make st_blksize default to PAGE_SIZE instead of zero.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 403b067..c411bfc 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -568,7 +568,7 @@ vn_stat(vp, sb, td)
* "a filesystem-specific preferred I/O block size for this
* object. In some filesystem types, this may vary from file
* to file"
- * Default to zero to catch bogus uses of this field.
+ * Default to PAGE_SIZE after much discussion.
*/
if (vap->va_type == VREG) {
@@ -580,7 +580,7 @@ vn_stat(vp, sb, td)
if (sb->st_blksize < BLKDEV_IOSIZE)
sb->st_blksize = BLKDEV_IOSIZE;
} else {
- sb->st_blksize = 0;
+ sb->st_blksize = PAGE_SIZE;
}
sb->st_flags = vap->va_flags;
OpenPOWER on IntegriCloud