aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-05-10 13:08:39 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:57 +0000
commit0f2bc221507fa1e787b87c783f4c699e5feb8957 (patch)
tree1dc58f8d61d44432412def5dcb723519cb7a482b /lib/netdev-notifier-error-inject.c
parentbtrfs: return real error from __filemap_get_folio() calls (diff)
downloadkernel-0f2bc221507fa1e787b87c783f4c699e5feb8957.tar.gz
kernel-0f2bc221507fa1e787b87c783f4c699e5feb8957.zip
btrfs: simplify error return logic when getting folio at prepare_one_folio()
There's no need to have special logic to return -EAGAIN in case the call to __filemap_get_folio() fails, because when FGP_NOWAIT is passed to __filemap_get_folio() it returns ERR_PTR(-EAGAIN) if it needs to do something that would imply blocking. The reason we have this logic is from the days before we migrated to the folio interface, when we called pagecache_get_page() which would return NULL instead of an error pointer. So remove this special casing and always return the error that the call to __filemap_get_folio() returned. Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions