projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b34c26
)
btrfs: make file clone aware of fatal signals
author
Wang Xiaoguang
<wangxg.fnst@cn.fujitsu.com>
Thu, 13 Oct 2016 01:23:39 +0000
(09:23 +0800)
committer
David Sterba
<dsterba@suse.com>
Mon, 24 Oct 2016 16:20:29 +0000
(18:20 +0200)
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>
fs/btrfs/ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index af69129d7e0e0b3bd269d30c4d6a20b583eb8d32..71634570943cf3ed67e4dd5e50da763fb392e7e8 100644
(file)
--- 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;