Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dm vdo memory-alloc: simplify allocations_allowed()

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>

+2 -4
+2 -4
drivers/md/dm-vdo/memory-alloc.c
··· 20 20 */ 21 21 static struct thread_registry allocating_threads; 22 22 23 - static bool allocations_allowed(void) 23 + static inline bool allocations_allowed(void) 24 24 { 25 - const bool *pointer = vdo_lookup_thread(&allocating_threads); 26 - 27 - return (pointer != NULL) ? *pointer : false; 25 + return vdo_lookup_thread(&allocating_threads) != NULL; 28 26 } 29 27 30 28 /*