1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Remove spl's from kern_resource.c.

This commit is contained in:
Robert Watson 2004-08-04 18:19:09 +00:00
parent e3a64610bf
commit 1b93405c7c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133126

View File

@ -1133,14 +1133,11 @@ chgsbsize(uip, hiwat, to, max)
rlim_t max;
{
rlim_t new;
int s;
s = splnet();
UIDINFO_LOCK(uip);
new = uip->ui_sbsize + to - *hiwat;
/* Don't allow them to exceed max, but allow subtraction */
if (to > *hiwat && new > max) {
splx(s);
UIDINFO_UNLOCK(uip);
return (0);
}
@ -1148,7 +1145,6 @@ chgsbsize(uip, hiwat, to, max)
*hiwat = to;
if (uip->ui_sbsize < 0)
printf("negative sbsize for uid = %d\n", uip->ui_uid);
splx(s);
UIDINFO_UNLOCK(uip);
return (1);
}