• Sweet Tea Dorminy's avatar
    btrfs: setup qstr from dentrys using fscrypt helper · ab3c5c18
    Sweet Tea Dorminy authored
    Most places where we get a struct qstr, we are doing so from a dentry.
    With fscrypt, the dentry's name may be encrypted on-disk, so fscrypt
    provides a helper to convert a dentry name to the appropriate disk name
    if necessary. Convert each of the dentry name accesses to use
    fscrypt_setup_filename(), then convert the resulting fscrypt_name back
    to an unencrypted qstr. This does not work for nokey names, but the
    specific locations that could spawn nokey names are noted.
    
    At present, since there are no encrypted directories, nothing goes down
    the filename encryption paths.
    Signed-off-by: default avatarSweet Tea Dorminy <sweettea-kernel@dorminy.me>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    ab3c5c18
transaction.c 75.9 KB