Skip to content

Commit

Permalink
include/linux/pagemap.h: document trylock_page() return value
Browse files Browse the repository at this point in the history
Cc: Henry Burns <[email protected]>
Cc: Jonathan Adams <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Xidong Wang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Jul 12, 2019
1 parent 98ef204 commit f445884
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/pagemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ extern int __lock_page_or_retry(struct page *page, struct mm_struct *mm,
unsigned int flags);
extern void unlock_page(struct page *page);

/*
* Return true if the page was successfully locked
*/
static inline int trylock_page(struct page *page)
{
page = compound_head(page);
Expand Down

0 comments on commit f445884

Please sign in to comment.