Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove unused TestSetPageLocked() interface

TestSetPageLocked() isn't being used anywhere. Also, using it would
likely be an error, since the proper interface trylock_page() provides
stronger ordering guarantees.

Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Michel Lespinasse and committed by
Linus Torvalds
cb240452 01d8b20d

+1 -1
+1 -1
include/linux/page-flags.h
··· 196 196 197 197 struct page; /* forward declaration */ 198 198 199 - TESTPAGEFLAG(Locked, locked) TESTSETFLAG(Locked, locked) 199 + TESTPAGEFLAG(Locked, locked) 200 200 PAGEFLAG(Error, error) TESTCLEARFLAG(Error, error) 201 201 PAGEFLAG(Referenced, referenced) TESTCLEARFLAG(Referenced, referenced) 202 202 PAGEFLAG(Dirty, dirty) TESTSCFLAG(Dirty, dirty) __CLEARPAGEFLAG(Dirty, dirty)