From: Miaohe Lin Date: Mon, 4 Apr 2022 15:38:20 +0000 (-0400) Subject: filemap: Remove obsolete comment in lock_page X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=65aa6b5a18294b3713a90c120312ed5d63a16b82;p=linux.git filemap: Remove obsolete comment in lock_page We no longer need the page's inode pinned. This comment dates back to commit db37648cd6ce ("[PATCH] mm: non syncing lock_page()") which added lock_page_nosync(). That was removed by commit 7eaceaccab5f ("block: remove per-queue plugging") which also made this comment obsolete. Signed-off-by: Miaohe Lin Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 65ae8f96554b9..ab47579af4345 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -908,9 +908,6 @@ static inline void folio_lock(struct folio *folio) __folio_lock(folio); } -/* - * lock_page may only be called if we have the page's inode pinned. - */ static inline void lock_page(struct page *page) { struct folio *folio;