filemap: remove obsolete comment in lock_page
Subsystems (2)
PATCH 1/1 filemap: remove obsolete comment in lock_page
lock_page needs the caller to have a reference on the page->mapping inode due to sync_page. Also lock_page_nosync is introduced which does not do a sync_page via commit db37648cd6ce ("[PATCH] mm: non syncing lock_page()"). But commit 7eaceaccab5f ("block: remove per-queue plugging") kills off the old plugging along with aops->sync_page() and lock_page_nosync. So there is no need to have a reference on the page->mapping inode when calling lock_page anymore. Remove this obsolete and confusing comment.
--- include/linux/pagemap.h | 3 --- 1 file changed, 3 deletions(-)
include/linux/pagemap.h +0 -3
@@ -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;
Signature · 1 line
2.23.0
Matthew Wilcox
maintainerQuoted 9 lines · Miaohe Lin
lock_pageneeds the caller to have a reference on thepage->mappinginode due tosync_page. Alsolock_page_nosyncis introduced which does not do async_pagevia commitdb37648cd6ce("[PATCH] mm: non syncinglock_page()"). But commit7eaceaccab5f("block: remove per-queue plugging") kills off the old plugging along withaops->sync_page()andlock_page_nosync. So there is no need to have a reference on thepage->mappinginode when callinglock_pageanymore. Remove this obsolete and confusing comment.Signed-off-by Miaohe Lin <[email protected]>
Thanks. I'll fix up the changelog (some of the tenses are a little strange) and take this through my pagecache tree.
Quoted 20 lines
include/linux/pagemap.h | 3 --- 1 file changed, 3 deletions(-)include/linux/pagemap.h +0
-3@@ -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;Signature · 1 line
2.23.0
Quoted 9 lines · Matthew Wilcox
Quoted 8 lines · Miaohe Lin
lock_pageneeds the caller to have a reference on thepage->mappinginode due tosync_page. Alsolock_page_nosyncis introduced which does not do async_pagevia commitdb37648cd6ce("[PATCH] mm: non syncinglock_page()"). But commit7eaceaccab5f("block: remove per-queue plugging") kills off the old plugging along withaops->sync_page()andlock_page_nosync. So there is no need to have a reference on thepage->mappinginode when callinglock_pageanymore. Remove this obsolete and confusing comment.
Quoted 4 lines
Quoted 1 line
Signed-off-by Miaohe Lin <[email protected]>Thanks. I'll fix up the changelog (some of the tenses are a little strange) and take this through my pagecache tree.
Many thanks for doing this. :)
Quoted 24 lines
Quoted 21 lines
include/linux/pagemap.h | 3 --- 1 file changed, 3 deletions(-)include/linux/pagemap.h +0
-3@@ -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;Signature · 1 line
2.23.0.