Skip to content

Commit 98473f9

Browse files
olofjtorvalds
authored andcommitted
mm/filemap: fix parameters to test_bit()
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: b91e130 ('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>
1 parent b91e130 commit 98473f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/filemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ static inline bool clear_bit_unlock_is_negative_byte(long nr, volatile void *mem
930930
{
931931
clear_bit_unlock(nr, mem);
932932
/* smp_mb__after_atomic(); */
933-
return test_bit(PG_waiters);
933+
return test_bit(PG_waiters, mem);
934934
}
935935

936936
#endif

0 commit comments

Comments
 (0)