aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-17 18:12:25 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-29 08:51:07 -0400
commitb0c971e7b76887bfab44e6b891e90ebb4c637172 (patch)
treebc82f1a0f623d4fa1fd47e11b67787c0605b1186 /fs/reiserfs/xattr.c
parentntfs3: Remove check for PageError (diff)
downloadlinux-dev-b0c971e7b76887bfab44e6b891e90ebb4c637172.tar.xz
linux-dev-b0c971e7b76887bfab44e6b891e90ebb4c637172.zip
reiserfs: Remove check for PageError
If read_mapping_page() encounters an error, it returns an errno, not a page with PageError set, so this is dead code. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r--fs/reiserfs/xattr.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index bd073836e141..436641369283 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -440,16 +440,9 @@ static struct page *reiserfs_get_page(struct inode *dir, size_t n)
*/
mapping_set_gfp_mask(mapping, GFP_NOFS);
page = read_mapping_page(mapping, n >> PAGE_SHIFT, NULL);
- if (!IS_ERR(page)) {
+ if (!IS_ERR(page))
kmap(page);
- if (PageError(page))
- goto fail;
- }
return page;
-
-fail:
- reiserfs_put_page(page);
- return ERR_PTR(-EIO);
}
static inline __u32 xattr_hash(const char *msg, int len)