diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-05-10 13:59:54 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:57 +0200 |
commit | 443e4d0e1c622885cb3d048619b4cc2c27a812bd (patch) | |
tree | 753b6fa2bd505f1b6c6d50f096e72d20e9333242 /scripts/lib/kdoc/kdoc_parser.py | |
parent | ca84913d490dad56b5ca7580be064b039039bd34 (diff) |
btrfs: return real error from __filemap_get_folio() calls
We have a few places that always assume a -ENOMEM error happened in case a
call to __filemap_get_folio() returns an error, which is just too much of
an assumption and even if it would be the case at some point in time, it's
not future proof and there's nothing in the documentation that guarantees
that only ERR_PTR(-ENOMEM) can be returned with the flags we are passing
to it.
So use the exact error returned by __filemap_get_folio() instead.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions