diff options
author | 2016-10-13 09:23:39 +0800 | |
---|---|---|
committer | 2016-10-24 18:20:29 +0200 | |
commit | 69ae5e4459e43e56f03d0987e865fbac2b05af2a (patch) | |
tree | 76315f47d6f0f4368fa137e99d38023e9319099c /fs | |
parent | btrfs: qgroup: Prevent qgroup->reserved from going subzero (diff) | |
download | linux-69ae5e4459e43e56f03d0987e865fbac2b05af2a.tar.gz linux-69ae5e4459e43e56f03d0987e865fbac2b05af2a.tar.bz2 linux-69ae5e4459e43e56f03d0987e865fbac2b05af2a.zip |
btrfs: make file clone aware of fatal signals
Indeed this just make the behavior similar to xfs when process has
fatal signals pending, and it'll make fstests/generic/298 happy.
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index af69129d7e0e..71634570943c 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3814,6 +3814,11 @@ process_slot: } btrfs_release_path(path); key.offset = next_key_min_offset; + + if (fatal_signal_pending(current)) { + ret = -EINTR; + goto out; + } } ret = 0; |