fs: make cont_expand_zero interruptible
[pandora-kernel.git] / fs / buffer.c
index 4d07275..c457f84 100644 (file)
@@ -2261,6 +2261,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 */