diff options
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index c11950652646..ea268080380d 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
@@ -357,6 +357,15 @@ static inline int lock_page_or_retry(struct page *page, struct mm_struct *mm, | |||
357 | */ | 357 | */ |
358 | extern void wait_on_page_bit(struct page *page, int bit_nr); | 358 | extern void wait_on_page_bit(struct page *page, int bit_nr); |
359 | 359 | ||
360 | extern int wait_on_page_bit_killable(struct page *page, int bit_nr); | ||
361 | |||
362 | static inline int wait_on_page_locked_killable(struct page *page) | ||
363 | { | ||
364 | if (PageLocked(page)) | ||
365 | return wait_on_page_bit_killable(page, PG_locked); | ||
366 | return 0; | ||
367 | } | ||
368 | |||
360 | /* | 369 | /* |
361 | * Wait for a page to be unlocked. | 370 | * Wait for a page to be unlocked. |
362 | * | 371 | * |