diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index 90b2db091..64bc10e10 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -639,4 +639,6 @@ int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip, */ #define lower_32_bits(n) ((uint32_t)((n) & 0xffffffff)) +#define cond_resched() ((void)0) + #endif /* __LIBXFS_INTERNAL_XFS_H__ */ diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index 347b44423..a0dda4640 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -6377,6 +6377,7 @@ xfs_bunmapi_range( error = xfs_defer_finish(tpp); if (error) goto out; + cond_resched(); } out: return error;