diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-13 11:14:09 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-13 11:14:09 -0500 |
commit | 485053bb81c81a122edd982b263277e65d7485c5 (patch) | |
tree | fb9e48b2372970a82b5ec5a691bec613fa4e7505 /fs/ufs | |
parent | b85ea95d086471afb4ad062012a4d73cd328fa86 (diff) |
fix ufs_get_locked_folio() breakage
filemap_lock_folio() returns ERR_PTR(-ENOENT) if the thing is not
in cache - not NULL like find_lock_page() used to.
Fixes: 5fb7bd50b351 "ufs: add ufs_get_locked_folio and ufs_put_locked_folio"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 13ba34e6d64f..2acf191eb89e 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c @@ -245,7 +245,7 @@ struct folio *ufs_get_locked_folio(struct address_space *mapping, { struct inode *inode = mapping->host; struct folio *folio = filemap_lock_folio(mapping, index); - if (!folio) { + if (IS_ERR(folio)) { folio = read_mapping_folio(mapping, index, NULL); if (IS_ERR(folio)) { |