Re: [PATCH 3/5] slab: extract slabinfo header printing to separate function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pekka Enberg wrote:

 #ifdef CONFIG_PROC_FS

-static void *s_start(struct seq_file *m, loff_t *pos)
+static inline void print_slabinfo_header(struct seq_file *m)
Why inline? I try to avoid adding inline wherever possible. inline is actually always_inline force_inline compiler_we_know_it_better_this_must_be_inlined. I only use inline in the hot path (kmem_cache_alloc/kmalloc+free) and where I know that lots of code will be optimized away due to constant propagation. In this case, there is no reason to force the compiler to inline the function, thus I wouldn't add an inline.

--
   Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux