From c6b342f8209426553f424e79d23fe1f996b2baaf Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 17 May 2007 15:31:14 +0000 Subject: [PATCH] Eliminate a micro-optimization that hasn't had any effect for 15+ years. --- sys/kern/vfs_vnops.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 25ee8a439d0d..64c0a4efd0a6 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -718,12 +718,7 @@ vn_stat(vp, sb, active_cred, file_cred, td) else sb->st_gen = vap->va_gen; -#if (S_BLKSIZE == 512) - /* Optimize this case */ - sb->st_blocks = vap->va_bytes >> 9; -#else sb->st_blocks = vap->va_bytes / S_BLKSIZE; -#endif return (0); }