Cleanup: use DEFINE_URCU_TLS_INIT for all CONFIG_RCU_TLS configurations
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:33:48 +0000 (11:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:33:48 +0000 (11:33 -0400)
Introduce a dependency on DEFINE_URCU_TLS_INIT for all CONFIG_RCU_TLS
configurations.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-context-cgroup-ns.c
liblttng-ust/lttng-context-ipc-ns.c
liblttng-ust/lttng-context-net-ns.c
liblttng-ust/lttng-context-uts-ns.c

index cd9e2bc1f1de694ae3e04c3dae470d44fa1b896f..a6aca3abf60b3267599ef46473c43c02a95b3a36 100644 (file)
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
-#ifdef CONFIG_RCU_TLS
-static DEFINE_URCU_TLS(ino_t, cached_cgroup_ns) = NS_INO_UNINITIALIZED;
-#else
 static DEFINE_URCU_TLS_INIT(ino_t, cached_cgroup_ns, NS_INO_UNINITIALIZED);
-#endif
 
 static
 ino_t get_cgroup_ns(void)
index 9890b03b5ed39340df16b5d162658b147529e2cd..029ba0876fc5d6761d0471ba9628ce6e4ed8ffdf 100644 (file)
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
-#ifdef CONFIG_RCU_TLS
-static DEFINE_URCU_TLS(ino_t, cached_ipc_ns) = NS_INO_UNINITIALIZED;
-#else
 static DEFINE_URCU_TLS_INIT(ino_t, cached_ipc_ns, NS_INO_UNINITIALIZED);
-#endif
 
 static
 ino_t get_ipc_ns(void)
index c1ae97967ab5679d3b68c1328b40f0dcb9b4d4fc..3ce139f62049d1cd287c012e300a22a43ed7c9de 100644 (file)
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
-#ifdef CONFIG_RCU_TLS
-static DEFINE_URCU_TLS(ino_t, cached_net_ns) = NS_INO_UNINITIALIZED;
-#else
 static DEFINE_URCU_TLS_INIT(ino_t, cached_net_ns, NS_INO_UNINITIALIZED);
-#endif
 
 static
 ino_t get_net_ns(void)
index 77bb21bc51f16543490bf919a99c7e82d11005b4..13b7a46985b2b1ebb5bf658eccb8df154d06392d 100644 (file)
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
-#ifdef CONFIG_RCU_TLS
-static DEFINE_URCU_TLS(ino_t, cached_uts_ns) = NS_INO_UNINITIALIZED;
-#else
 static DEFINE_URCU_TLS_INIT(ino_t, cached_uts_ns, NS_INO_UNINITIALIZED);
-#endif
 
 static
 ino_t get_uts_ns(void)
This page took 0.025661 seconds and 4 git commands to generate.