freebsd-nq/sys/ufs
Konstantin Belousov 689eae1d90 Revert the r167541: "Remove unneeded getinoquota() call in the
ufs_access()." The call to getinoquota in ufs_access() serves the
purpose of instantiating inode dquot from the vn_open(). Since quotas
are accounted only for the inodes with already attached dquot, removal
of the call prevented opened inodes from participation in the quota
calculations.

Since ufs_access() may be called with the vnode being only shared
locked, upgrade (and then downgrade) vnode lock if calling
getinoquota().

Reported by:	simon at optinet com
In collaboration with:	pho
MFC after:	1 week
2008-08-24 17:24:22 +00:00
..
ffs Revert r181345. 2008-08-10 12:15:36 +00:00
ufs Revert the r167541: "Remove unneeded getinoquota() call in the 2008-08-24 17:24:22 +00:00