]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: constify inode parameter to filename encryption functions
authorEric Biggers <ebiggers@google.com>
Sun, 15 Dec 2019 21:39:47 +0000 (13:39 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 31 Dec 2019 16:33:50 +0000 (10:33 -0600)
commit7b6fba1f77ce76bf08659225e175fd463abf8b48
tree9390b2c28ef2cb17fcb170847871dd167154ddcd
parentefaa6c63e5ec0bd3dbe6ff7af352dc6d5d683594
fscrypt: constify inode parameter to filename encryption functions

Constify the struct inode parameter to fscrypt_fname_disk_to_usr() and
the other filename encryption functions so that users don't have to pass
in a non-const inode when they are dealing with a const one, as in [1].

[1] https://lkml.kernel.org/linux-ext4/20191203051049.44573-6-drosen@google.com/

Cc: Daniel Rosenberg <drosen@google.com>
Link: https://lore.kernel.org/r/20191215213947.9521-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/fname.c
fs/crypto/fscrypt_private.h
include/linux/fscrypt.h