bcachefs: __bchfs_fallocate() now checks for pending signals
PATCH 1/1 bcachefs: __bchfs_fallocate() now checks for pending signals
This can be an operation with very long latenc, if terabytes are requested.
Signed-off-by Kent Overstreet <[email protected]>
--- fs/bcachefs/fs-io.c | 4 ++++ 1 file changed, 4 insertions(+)
fs/bcachefs/fs-io.c +4 -0
@@ -626,6 +626,10 @@ static noinline int __bchfs_fallocate(struct bch_inode_info *inode, int mode,u64 hole_start, hole_end;u32 snapshot; + ret =unlikely (signal_pending (current)) ? -ERESTARTSYS :0 ; +if (ret) +break ; +bch2_trans_begin (trans);if (bkey_ge (iter.pos, end_pos))
Signature · 1 line
2.49.0