Explorar o código

kfifo: fix inaccurate comment

The comment in __kfifo_alloc says we round down, but we actually round
up, so correct it.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Martin Kelly %!s(int64=7) %!d(string=hai) anos
pai
achega
75a24b822d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/kfifo.c

+ 1 - 1
lib/kfifo.c

@@ -39,7 +39,7 @@ int __kfifo_alloc(struct __kfifo *fifo, unsigned int size,
 		size_t esize, gfp_t gfp_mask)
 {
 	/*
-	 * round down to the next power of 2, since our 'let the indices
+	 * round up to the next power of 2, since our 'let the indices
 	 * wrap' technique works only in this case.
 	 */
 	size = roundup_pow_of_two(size);