aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-12 18:16:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-12 18:16:31 -0400
commitd7a02fa0a8f9ec1b81d57628ca9834563208ef33 (patch)
treeb2f43dbee43b7abd7329b8745e4f0a9659ee6ffe /include/linux
parent4dbf09fea60d158e60a30c419e0cfa1ea138dd57 (diff)
parent04d37e5a8b1fad2d625727af3d738c6fd9491720 (diff)
Merge tag 'upstream-5.2-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/rw/ubifs
Pull UBI/UBIFS updates from Richard Weinberger: - fscrypt framework usage updates - One huge fix for xattr unlink - Cleanup of fscrypt ifdefs - Fix for our new UBIFS auth feature * tag 'upstream-5.2-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: ubi: wl: Fix uninitialized variable ubifs: Drop unnecessary setting of zbr->znode ubifs: Remove ifdefs around CONFIG_UBIFS_ATIME_SUPPORT ubifs: Remove #ifdef around CONFIG_FS_ENCRYPTION ubifs: Limit number of xattrs per inode ubifs: orphan: Handle xattrs like files ubifs: journal: Handle xattrs like files ubifs: find.c: replace swap function with built-in one ubifs: Do not skip hash checking in data nodes ubifs: work around high stack usage with clang ubifs: remove unused function __ubifs_shash_final ubifs: remove unnecessary #ifdef around fscrypt_ioctl_get_policy() ubifs: remove unnecessary calls to set up directory key
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fscrypt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h
index 28c74e0a7231..f7680ef1abd2 100644
--- a/include/linux/fscrypt.h
+++ b/include/linux/fscrypt.h
@@ -247,6 +247,11 @@ extern int __fscrypt_encrypt_symlink(struct inode *inode, const char *target,
247extern const char *fscrypt_get_symlink(struct inode *inode, const void *caddr, 247extern const char *fscrypt_get_symlink(struct inode *inode, const void *caddr,
248 unsigned int max_size, 248 unsigned int max_size,
249 struct delayed_call *done); 249 struct delayed_call *done);
250static inline void fscrypt_set_ops(struct super_block *sb,
251 const struct fscrypt_operations *s_cop)
252{
253 sb->s_cop = s_cop;
254}
250#else /* !CONFIG_FS_ENCRYPTION */ 255#else /* !CONFIG_FS_ENCRYPTION */
251 256
252static inline bool fscrypt_has_encryption_key(const struct inode *inode) 257static inline bool fscrypt_has_encryption_key(const struct inode *inode)
@@ -471,6 +476,12 @@ static inline const char *fscrypt_get_symlink(struct inode *inode,
471{ 476{
472 return ERR_PTR(-EOPNOTSUPP); 477 return ERR_PTR(-EOPNOTSUPP);
473} 478}
479
480static inline void fscrypt_set_ops(struct super_block *sb,
481 const struct fscrypt_operations *s_cop)
482{
483}
484
474#endif /* !CONFIG_FS_ENCRYPTION */ 485#endif /* !CONFIG_FS_ENCRYPTION */
475 486
476/** 487/**