Message ID | 05685edc7747bda9a359a04cd66b07e11e889f91.1733929328.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: fixes around swap file activation and cleanups | expand |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 7ddb8a01b60f..5edc151c640d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -10073,6 +10073,11 @@ static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, bsi.block_start = physical_block_start; bsi.block_len = len; } + + if (fatal_signal_pending(current)) { + ret = -EINTR; + goto out; + } } if (bsi.block_len)