X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=fs%2Fext4%2Fnamei.c;h=c07422d254b64a3126f6368419a5ac5fa0c0323b;hb=1f60fbe7274918adb8db2f616e321890730ab7e3;hp=48e4b8907826eca52a1e94e14bdfdb0fd2240c56;hpb=c3b46c73264b03000d1e18b22f5caf63332547c9;p=deliverable%2Flinux.git diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 48e4b8907826..c07422d254b6 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1107,6 +1107,11 @@ int ext4_htree_fill_tree(struct file *dir_file, __u32 start_hash, } while (1) { + if (fatal_signal_pending(current)) { + err = -ERESTARTSYS; + goto errout; + } + cond_resched(); block = dx_get_block(frame->at); ret = htree_dirblock_to_tree(dir_file, dir, block, &hinfo, start_hash, start_minor_hash);