ext4: refactor and move ext4_ioctl_get_encryption_pwsalt()
authorRitesh Harjani <ritesh.list@gmail.com>
Sun, 15 May 2022 06:37:48 +0000 (12:07 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 22 May 2022 02:24:24 +0000 (22:24 -0400)
commit72f63f4a770310233dba3bff8fc6e41660ebaa27
tree6c9faa859341418cce505759bb9e088a41500c45
parent3030b59c8533835f4e8b5e6d7047f80dcf7e40b9
ext4: refactor and move ext4_ioctl_get_encryption_pwsalt()

This patch move code for FS_IOC_GET_ENCRYPTION_PWSALT case into
ext4's crypto.c file, i.e. ext4_ioctl_get_encryption_pwsalt()
and uuid_is_zero(). This is mostly refactoring logic and should
not affect any functionality change.

Suggested-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Ritesh Harjani <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/5af98b17152a96b245b4f7d2dfb8607fc93e36aa.1652595565.git.ritesh.list@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto.c
fs/ext4/ext4.h
fs/ext4/ioctl.c