]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fuse: don't allow signals to interrupt getdents copying
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 16 Apr 2025 08:53:58 +0000 (10:53 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 29 May 2025 10:31:23 +0000 (12:31 +0200)
commitc31f91c6af96a5eb0632f4aee8d4e39cad7d7559
treee67f53aaeee84bffbf267e20fe4f65f73f3721e0
parentf3cb8bd908c72eb7b766eca05aac1685749eff02
fuse: don't allow signals to interrupt getdents copying

When getting the directory contents, the entries are first fetched to a
kernel buffer, then they are copied to userspace with dir_emit().  This
second phase is non-blocking as long as the userspace buffer is not paged
out, making it interruptible makes zero sense.

Overload d_type as flags, since it only uses 4 bits from 32.

Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/readdir.c
fs/readdir.c
include/linux/fs.h