mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Eliminate a micro-optimization that hasn't had any effect for 15+ years.
This commit is contained in:
parent
b50ace7384
commit
c6b342f820
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169658
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user