Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111071841
D38565.id117137.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
D38565.id117137.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/shrinker.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/shrinker.h
+++ sys/compat/linuxkpi/common/include/linux/shrinker.h
@@ -51,8 +51,10 @@
int linuxkpi_register_shrinker(struct shrinker *s);
void linuxkpi_unregister_shrinker(struct shrinker *s);
+void linuxkpi_synchronize_shrinkers(void);
#define register_shrinker(s) linuxkpi_register_shrinker(s)
#define unregister_shrinker(s) linuxkpi_unregister_shrinker(s)
+#define synchronize_shrinkers() linuxkpi_synchronize_shrinkers()
#endif /* _LINUXKPI_LINUX_SHRINKER_H_ */
Index: sys/compat/linuxkpi/common/src/linux_shrinker.c
===================================================================
--- sys/compat/linuxkpi/common/src/linux_shrinker.c
+++ sys/compat/linuxkpi/common/src/linux_shrinker.c
@@ -64,6 +64,14 @@
sx_xunlock(&sx_shrinker);
}
+void
+linuxkpi_synchronize_shrinkers(void)
+{
+
+ sx_xlock(&sx_shrinker);
+ sx_xunlock(&sx_shrinker);
+}
+
#define SHRINKER_BATCH 512
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 1:13 AM (16 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16876959
Default Alt Text
D38565.id117137.diff (1 KB)
Attached To
Mode
D38565: linuxkpi: Add `synchronize_shrinkers()`
Attached
Detach File
Event Timeline
Log In to Comment