projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
io_uring/rsrc: consolidate node caching
[platform/kernel/linux-starfive.git]
/
io_uring
/
alloc_cache.h
diff --git
a/io_uring/alloc_cache.h
b/io_uring/alloc_cache.h
index
851a527
..
241245c
100644
(file)
--- a/
io_uring/alloc_cache.h
+++ b/
io_uring/alloc_cache.h
@@
-23,6
+23,11
@@
static inline bool io_alloc_cache_put(struct io_alloc_cache *cache,
return false;
}
+static inline bool io_alloc_cache_empty(struct io_alloc_cache *cache)
+{
+ return !cache->list.next;
+}
+
static inline struct io_cache_entry *io_alloc_cache_get(struct io_alloc_cache *cache)
{
if (cache->list.next) {