Commit 65aa6b5a authored by Miaohe Lin's avatar Miaohe Lin Committed by Matthew Wilcox (Oracle)

filemap: Remove obsolete comment in lock_page

We no longer need the page's inode pinned.  This comment dates back to
commit db37648c ("[PATCH] mm: non syncing lock_page()") which added
lock_page_nosync().  That was removed by commit 7eaceacc ("block:
remove per-queue plugging") which also made this comment obsolete.
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 84a1041c
...@@ -908,9 +908,6 @@ static inline void folio_lock(struct folio *folio) ...@@ -908,9 +908,6 @@ static inline void folio_lock(struct folio *folio)
__folio_lock(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) static inline void lock_page(struct page *page)
{ {
struct folio *folio; struct folio *folio;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment