]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mm/filemap: fix parameters to test_bit()
authorOlof Johansson <olof@lixom.net>
Thu, 29 Dec 2016 22:16:07 +0000 (14:16 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Dec 2016 22:46:39 +0000 (14:46 -0800)
 mm/filemap.c: In function 'clear_bit_unlock_is_negative_byte':
  mm/filemap.c:933:9: error: too few arguments to function 'test_bit'
    return test_bit(PG_waiters);
         ^~~~~~~~

Fixes: 8785db0e6131 ('mm: optimize PageWaiters bit use for unlock_page()')
Signed-off-by: Olof Johansson <olof@lixom.net>
Brown-paper-bag-by: Linus Torvalds <dummy@duh.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c

index 6b1d96f86a9cb85a71258a7baf3b6257cc22b799..d0e4d1002059360e50254ae2c87dc8f7a87a2dff 100644 (file)
@@ -930,7 +930,7 @@ static inline bool clear_bit_unlock_is_negative_byte(long nr, volatile void *mem
 {
        clear_bit_unlock(nr, mem);
        /* smp_mb__after_atomic(); */
-       return test_bit(PG_waiters);
+       return test_bit(PG_waiters, mem);
 }
 
 #endif