[PATCH 1/2] Check return value of unpin_exten_cache

From: Siddhartha Menon
Date: Sat Dec 31 2022 - 08:41:56 EST


Signed-off-by: Siddhartha Menon <siddharthamenon@xxxxxxxxxxx>
---
fs/btrfs/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 8bcad9940154..cb95d47e4d02 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -3331,7 +3331,7 @@ int btrfs_finish_ordered_io(struct btrfs_ordered_exte=
nt *ordered_extent)
ordered_extent->disk_num_bytes);
}
}
- unpin_extent_cache(&inode->extent_tree, ordered_extent->file_offset,
+ ret =3D unpin_extent_cache(&inode->extent_tree, ordered_extent->file_offs=
et,
ordered_extent->num_bytes, trans->transid);
if (ret < 0) {
btrfs_abort_transaction(trans, ret);
--=20
2.39.0