summaryrefslogtreecommitdiffstats
path: root/fs/jfs
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-18 05:32:34 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 14:51:07 +0200
commit3b60d53df07fc67422cb7cadd1c2c6df720a1922 (patch)
treeb5b58c64df1d8e5d22179d56978597cb3ef38885 /fs/jfs
parentremap_range: Remove check of uptodate flag (diff)
downloadlinux-3b60d53df07fc67422cb7cadd1c2c6df720a1922.tar.xz
linux-3b60d53df07fc67422cb7cadd1c2c6df720a1922.zip
jfs: Remove check for PageUptodate
Pages returned from read_mapping_page() are always uptodate, so this check is unnecessary. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/jfs')
-rw-r--r--fs/jfs/jfs_metapage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c
index 387652ae14c2..2e8461ce74de 100644
--- a/fs/jfs/jfs_metapage.c
+++ b/fs/jfs/jfs_metapage.c
@@ -618,7 +618,7 @@ struct metapage *__get_metapage(struct inode *inode, unsigned long lblock,
SetPageUptodate(page);
} else {
page = read_mapping_page(mapping, page_index, NULL);
- if (IS_ERR(page) || !PageUptodate(page)) {
+ if (IS_ERR(page)) {
jfs_err("read_mapping_page failed!");
return NULL;
}