]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fscrypt: make ->dummy_context() return bool
authorEric Biggers <ebiggers@google.com>
Thu, 22 Jun 2017 19:14:40 +0000 (12:14 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 24 Jun 2017 00:11:50 +0000 (20:11 -0400)
This makes it consistent with ->is_encrypted(), ->empty_dir(), and
fscrypt_dummy_context_enabled().

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c
include/linux/fscrypt_common.h

index 0b177da9ea8271f4a46208937d3c43fd20c0e9b7..f01d2c5bc3fada87638ab699995b3be8f8b485c2 100644 (file)
@@ -1205,7 +1205,7 @@ retry:
        return res;
 }
 
-static int ext4_dummy_context(struct inode *inode)
+static bool ext4_dummy_context(struct inode *inode)
 {
        return DUMMY_ENCRYPTION_ENABLED(EXT4_SB(inode->i_sb));
 }
index 4022c61f7e9b4d6186b0e7bfd9faf364c708ee17..e3e1208e0f54318b18d6dbd4da081dd08ae49642 100644 (file)
@@ -77,7 +77,7 @@ struct fscrypt_operations {
        const char *key_prefix;
        int (*get_context)(struct inode *, void *, size_t);
        int (*set_context)(struct inode *, const void *, size_t, void *);
-       int (*dummy_context)(struct inode *);
+       bool (*dummy_context)(struct inode *);
        bool (*is_encrypted)(struct inode *);
        bool (*empty_dir)(struct inode *);
        unsigned (*max_namelen)(struct inode *);