Skip to content

Commit 65aa6b5

Browse files
MiaoheLinMatthew Wilcox (Oracle)
authored andcommitted
filemap: Remove obsolete comment in lock_page
We no longer need the page's inode pinned. This comment dates back to commit db37648 ("[PATCH] mm: non syncing lock_page()") which added lock_page_nosync(). That was removed by commit 7eaceac ("block: remove per-queue plugging") which also made this comment obsolete. Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 84a1041 commit 65aa6b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/linux/pagemap.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,6 @@ static inline void folio_lock(struct folio *folio)
908908
__folio_lock(folio);
909909
}
910910

911-
/*
912-
* lock_page may only be called if we have the page's inode pinned.
913-
*/
914911
static inline void lock_page(struct page *page)
915912
{
916913
struct folio *folio;

0 commit comments

Comments
 (0)