summaryrefslogtreecommitdiff
path: root/fs/pstore/internal.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-05-05 05:43:41 +0300
committerKees Cook <keescook@chromium.org>2020-05-30 20:33:46 +0300
commit27e5041a87e8af2d0b6452dffe053d0253e914cc (patch)
tree4459a9c30b757756971ffcf26e68f2ccdee6c722 /fs/pstore/internal.h
parent7a0ad546847a23f92f5e227fa8e4578eaa3a8d0a (diff)
downloadlinux-27e5041a87e8af2d0b6452dffe053d0253e914cc.tar.xz
pstore: Add locking around superblock changes
Nothing was protecting changes to the pstorefs superblock. Add locking and refactor away is_pstore_mounted(), instead using a helper to add a way to safely lock the pstorefs root inode during filesystem changes. Link: https://lore.kernel.org/lkml/20200506152114.50375-9-keescook@chromium.org/ Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/internal.h')
-rw-r--r--fs/pstore/internal.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h
index 7062ea4bc57c..fe5f7ef7323f 100644
--- a/fs/pstore/internal.h
+++ b/fs/pstore/internal.h
@@ -33,7 +33,6 @@ extern void pstore_get_backend_records(struct pstore_info *psi,
struct dentry *root, int quiet);
extern int pstore_mkfile(struct dentry *root,
struct pstore_record *record);
-extern bool pstore_is_mounted(void);
extern void pstore_record_init(struct pstore_record *record,
struct pstore_info *psi);