|
@@ -1834,18 +1834,13 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
|
|
|
|
|
|
extern const struct fscrypt_operations ubifs_crypt_operations;
|
|
|
|
|
|
-static inline bool __ubifs_crypt_is_encrypted(struct inode *inode)
|
|
|
+static inline bool ubifs_crypt_is_encrypted(const struct inode *inode)
|
|
|
{
|
|
|
- struct ubifs_inode *ui = ubifs_inode(inode);
|
|
|
+ const struct ubifs_inode *ui = ubifs_inode(inode);
|
|
|
|
|
|
return ui->flags & UBIFS_CRYPT_FL;
|
|
|
}
|
|
|
|
|
|
-static inline bool ubifs_crypt_is_encrypted(const struct inode *inode)
|
|
|
-{
|
|
|
- return __ubifs_crypt_is_encrypted((struct inode *)inode);
|
|
|
-}
|
|
|
-
|
|
|
/* Normal UBIFS messages */
|
|
|
__printf(2, 3)
|
|
|
void ubifs_msg(const struct ubifs_info *c, const char *fmt, ...);
|