f2fs: use IS_ENCRYPTED() to check encryption status
This commit removes the f2fs specific f2fs_encrypted_inode() and makes use of the generic IS_ENCRYPTED() macro to check for the encryption status of an inode. Acked-by: Chao Yu <yuchao0@huawei.com> Reviewed-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com> Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:

committed by
Theodore Ts'o

parent
592ddec757
commit
62230e0d70
@@ -3463,14 +3463,9 @@ void f2fs_unregister_sysfs(struct f2fs_sb_info *sbi);
|
||||
/*
|
||||
* crypto support
|
||||
*/
|
||||
static inline bool f2fs_encrypted_inode(struct inode *inode)
|
||||
{
|
||||
return file_is_encrypt(inode);
|
||||
}
|
||||
|
||||
static inline bool f2fs_encrypted_file(struct inode *inode)
|
||||
{
|
||||
return f2fs_encrypted_inode(inode) && S_ISREG(inode->i_mode);
|
||||
return IS_ENCRYPTED(inode) && S_ISREG(inode->i_mode);
|
||||
}
|
||||
|
||||
static inline void f2fs_set_encrypted_inode(struct inode *inode)
|
||||
|
Reference in New Issue
Block a user