Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146040953
D22126.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22126.id.diff
View Options
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -1273,7 +1273,7 @@
{
struct mount *mp, *nmp;
unsigned long onumvnodes;
- int done, force, trigger, usevnodes;
+ int done, force, trigger, usevnodes, vsp;
bool reclaim_nc_src;
EVENTHANDLER_REGISTER(shutdown_pre_sync, kproc_shutdown, vnlruproc,
@@ -1301,7 +1301,8 @@
force = 1;
vstir = 0;
}
- if (vspace() >= vlowat && force == 0) {
+ vsp = vspace();
+ if (vsp >= vlowat && force == 0) {
vnlruproc_sig = 0;
wakeup(&vnlruproc_sig);
msleep(vnlruproc, &vnode_free_list_mtx,
@@ -1368,7 +1369,8 @@
* After becoming active to expand above low water, keep
* active until above high water.
*/
- force = vspace() < vhiwat;
+ vsp = vspace();
+ force = vsp < vhiwat;
}
}
@@ -1447,8 +1449,10 @@
static void
vcheckspace(void)
{
+ int vsp;
- if (vspace() < vlowat && vnlruproc_sig == 0) {
+ vsp = vspace();
+ if (vsp < vlowat && vnlruproc_sig == 0) {
vnlruproc_sig = 1;
wakeup(vnlruproc);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 7:18 AM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29058316
Default Alt Text
D22126.id.diff (1 KB)
Attached To
Mode
D22126: Fix undefined behavior.
Attached
Detach File
Event Timeline
Log In to Comment