Skip to content

Commit c16eb00

Browse files
Kirill Tkhaitorvalds
authored andcommitted
mm/filemap.c: remove useless check in pagecache_get_page()
page always is not NULL, so we may remove this useless check. Link: http://lkml.kernel.org/r/154419752044.18559.2452963074922917720.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai <[email protected]> Acked-by: Cyrill Gorcunov <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 144552f commit c16eb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/filemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,
16011601
VM_BUG_ON_PAGE(page->index != offset, page);
16021602
}
16031603

1604-
if (page && (fgp_flags & FGP_ACCESSED))
1604+
if (fgp_flags & FGP_ACCESSED)
16051605
mark_page_accessed(page);
16061606

16071607
no_page:

0 commit comments

Comments
 (0)