X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fpagemap.h;h=12f8116ff150d862b29a600fd7b75486767863f9;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=4da205f3cb2673b1616386d48bc2b5cec9117b73;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 4da205f3c..12f8116ff 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -156,6 +156,7 @@ extern void FASTCALL(unlock_page(struct page *page)); static inline void lock_page(struct page *page) { + might_sleep(); if (TestSetPageLocked(page)) __lock_page(page); }