diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-04 17:38:20 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-08 20:45:56 +0200 |
commit | 65aa6b5a18294b3713a90c120312ed5d63a16b82 (patch) | |
tree | a938acdd6d534f556b8eae6410b87a3e99c50c22 | |
parent | fs: Remove pagecache_write_begin() and pagecache_write_end() (diff) | |
download | linux-65aa6b5a18294b3713a90c120312ed5d63a16b82.tar.xz linux-65aa6b5a18294b3713a90c120312ed5d63a16b82.zip |
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 <linmiaohe@huawei.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | include/linux/pagemap.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 65ae8f96554b..ab47579af434 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; |