diff --git a/fs/buffer.c b/fs/buffer.c index 3588a80854b27acb18d185d437662d03668eddae..c8a1c01d61872986de7f8a751582b990045e7ec0 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -2318,6 +2318,11 @@ static int cont_expand_zero(struct file *file, struct address_space *mapping, err = 0; balance_dirty_pages_ratelimited(mapping); + + if (unlikely(fatal_signal_pending(current))) { + err = -EINTR; + goto out; + } } /* page covers the boundary, find the boundary offset */