]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: bch2_dir_emit() - fix directory reads in the fuse driver
authorAriel Miculas <ariel.miculas@gmail.com>
Thu, 30 May 2024 21:13:58 +0000 (00:13 +0300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:14 +0000 (19:00 -0400)
commitf8b0147364d5938c71c0bf315becd7a9de0d64b0
tree319e9675c42829f8ffcc44380c6bb6e7538717b5
parent7ed122aea2e26686467c6ec63dc4a1c060e0ff44
bcachefs: bch2_dir_emit() - fix directory reads in the fuse driver

Commit 0c0cbfdb84725e9933a24ecf47c61bdeeda06ba2 dropped the ctx->pos
update before the call to dir_emit. This breaks the userspace
implementation, causing the directory reads to be stuck in an infinite
loop. This doesn't happen in the kernel because the vfs handles the
updates to ctx->pos, but in the fuse implementation nobody updates
it.

Signed-off-by: Ariel Miculas <ariel.miculas@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/dirent.c