On Mon, Sep 05, 2022 at 08:35:16PM -0400, Sweet Tea Dorminy wrote: > From: Omar Sandoval <osandov@xxxxxxxxxxx> > > btrfs stores its data structures, including filenames in directories, in > its own buffer implementation, struct extent_buffer, composed of > several non-contiguous pages. We could copy filenames into a > temporary buffer and use fscrypt_match_name() against that buffer, such > extensive memcpying would be expensive. Instead, exposing > fscrypt_nokey_name as in this change allows btrfs to recapitulate > fscrypt_match_name() using methods on struct extent_buffer instead of > dealing with a raw byte array. > > Signed-off-by: Omar Sandoval <osandov@xxxxxxxxxxx> > Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@xxxxxxxxxx> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef