Skip to content

Commit de810f4

Browse files
Tobin C. Hardingtorvalds
authored andcommitted
include/linux/slub_def.h: comment fixes
Capitialize comment string, use C89 comment style, correct grammar/punctuation in comments. Link: http://lkml.kernel.org/r/20190204005713.9463-2-tobin@kernel.org Link: http://lkml.kernel.org/r/20190204005713.9463-3-tobin@kernel.org Link: http://lkml.kernel.org/r/20190204005713.9463-4-tobin@kernel.org Signed-off-by: Tobin C. Harding <tobin@kernel.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: William Kucharski <william.kucharski@oracle.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 92d1d07 commit de810f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/linux/slub_def.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ struct kmem_cache_order_objects {
8181
*/
8282
struct kmem_cache {
8383
struct kmem_cache_cpu __percpu *cpu_slab;
84-
/* Used for retriving partial slabs etc */
84+
/* Used for retrieving partial slabs, etc. */
8585
slab_flags_t flags;
8686
unsigned long min_partial;
87-
unsigned int size; /* The size of an object including meta data */
88-
unsigned int object_size;/* The size of an object without meta data */
89-
unsigned int offset; /* Free pointer offset. */
87+
unsigned int size; /* The size of an object including metadata */
88+
unsigned int object_size;/* The size of an object without metadata */
89+
unsigned int offset; /* Free pointer offset */
9090
#ifdef CONFIG_SLUB_CPU_PARTIAL
9191
/* Number of per cpu partial objects to keep around */
9292
unsigned int cpu_partial;
@@ -110,7 +110,7 @@ struct kmem_cache {
110110
#endif
111111
#ifdef CONFIG_MEMCG
112112
struct memcg_cache_params memcg_params;
113-
/* for propagation, maximum size of a stored attr */
113+
/* For propagation, maximum size of a stored attr */
114114
unsigned int max_attr_size;
115115
#ifdef CONFIG_SYSFS
116116
struct kset *memcg_kset;
@@ -151,7 +151,7 @@ struct kmem_cache {
151151
#else
152152
#define slub_cpu_partial(s) (0)
153153
#define slub_set_cpu_partial(s, n)
154-
#endif // CONFIG_SLUB_CPU_PARTIAL
154+
#endif /* CONFIG_SLUB_CPU_PARTIAL */
155155

156156
#ifdef CONFIG_SYSFS
157157
#define SLAB_SUPPORTS_SYSFS

0 commit comments

Comments
 (0)