aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ufs/ufs_inode.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-08-15 20:03:19 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-08-15 20:03:19 +0000
commit5c24d6ee264f523a969c6ebd686b84f98d7a5c22 (patch)
tree299d2a5d30abdc527bef4c7a0f0aa9dd1336bc74 /sys/ufs/ufs/ufs_inode.c
parentfc35a81b0992a1a0d98eca5fd8049c25edac3cbb (diff)
downloadsrc-5c24d6ee264f523a969c6ebd686b84f98d7a5c22.tar.gz
src-5c24d6ee264f523a969c6ebd686b84f98d7a5c22.zip
Eliminate the i_devvp field from the incore UFS inodes, we can
get the same value from ip->i_ump->um_devvp. This saves a pointer in the memory copies of inodes, which can easily run into several hundred kilobytes. The extra indirection is unmeasurable in benchmarks. Approved by: mckusick
Notes
Notes: svn path=/head/; revision=118969
Diffstat (limited to 'sys/ufs/ufs/ufs_inode.c')
-rw-r--r--sys/ufs/ufs/ufs_inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/ufs/ufs/ufs_inode.c b/sys/ufs/ufs/ufs_inode.c
index 7327749090a8..a644263188e6 100644
--- a/sys/ufs/ufs/ufs_inode.c
+++ b/sys/ufs/ufs/ufs_inode.c
@@ -169,10 +169,7 @@ ufs_reclaim(ap)
* Purge old data structures associated with the inode.
*/
cache_purge(vp);
- if (ip->i_devvp) {
- vrele(ip->i_devvp);
- ip->i_devvp = 0;
- }
+ vrele(ip->i_devvp);
#ifdef QUOTA
for (i = 0; i < MAXQUOTAS; i++) {
if (ip->i_dquot[i] != NODQUOT) {