Skip to content
Commit d31fbdc4 authored by Chao Yu's avatar Chao Yu Committed by Gao Xiang
Browse files

erofs: allow readdir() to be interrupted



In a quick slow device, readdir() may loop for long time in large
directory, let's give a chance to allow it to be interrupted by
userspace.

Signed-off-by: default avatarChao Yu <chao@kernel.org>
Reviewed-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250710073619.4083422-1-chao@kernel.org


[ Gao Xiang: move cond_resched() to the end of the while loop. ]
Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
parent 27917e81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment