pstore: Fix return type of pstore_is_mounted()
authorGeliang Tang <geliangtang@163.com>
Thu, 22 Oct 2015 08:02:33 +0000 (01:02 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 22 Oct 2015 17:57:33 +0000 (10:57 -0700)
This patch changes return type of pstore_is_mounted from int to bool.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/inode.c
fs/pstore/internal.h

index 3586491f26baad8da624db6a5e6c167c8e900f46..d8c439d813ce1bd0a415fd09a8407c6c6192d49b 100644 (file)
@@ -288,7 +288,7 @@ static const struct super_operations pstore_ops = {
 
 static struct super_block *pstore_sb;
 
-int pstore_is_mounted(void)
+bool pstore_is_mounted(void)
 {
        return pstore_sb != NULL;
 }
index 96253c474ea5e5bdae946a3f3b10570f3e5b9046..e38a22b31282e18c4aa24d37a420c8130089dcc6 100644 (file)
@@ -63,6 +63,6 @@ extern int    pstore_mkfile(enum pstore_type_id, char *psname, u64 id,
                              int count, char *data, bool compressed,
                              size_t size, struct timespec time,
                              struct pstore_info *psi);
-extern int     pstore_is_mounted(void);
+extern bool    pstore_is_mounted(void);
 
 #endif