Skip to content
Commit 8bf77197 authored by Jan Kara's avatar Jan Kara Committed by Kent Overstreet
Browse files

bcachefs: Fix determining required file handle length



The ->encode_fh method is responsible for setting amount of space
required for storing the file handle if not enough space was provided.
bch2_encode_fh() was not setting required length in that case which
breaks e.g. fanotify. Fix it.

Reported-by: default avatarPetr Vorel <pvorel@suse.cz>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent bedd6fe4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment