summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o2015-09-23 18:44:17 +0200
committerTheodore Ts'o2015-09-23 18:44:17 +0200
commitb5799018827e67867fda77c3cde10fc080606fe2 (patch)
treeebd4cc981162d55bef49b45ff86c846923411ef8 /fs/ext4/ext4.h
parentLinux 4.3-rc2 (diff)
downloadkernel-qcow2-linux-b5799018827e67867fda77c3cde10fc080606fe2.tar.gz
kernel-qcow2-linux-b5799018827e67867fda77c3cde10fc080606fe2.tar.xz
kernel-qcow2-linux-b5799018827e67867fda77c3cde10fc080606fe2.zip
ext4: move sysfs code from super.c to fs/ext4/sysfs.c
Also statically allocate the ext4_kset and ext4_feat objects, since we only need exactly one of each, and it's simpler and less code if we drop the dynamic allocation and deallocation when it's not needed. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index fd1f28be5296..76daccf38aa3 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -2903,6 +2903,11 @@ extern const struct inode_operations ext4_encrypted_symlink_inode_operations;
extern const struct inode_operations ext4_symlink_inode_operations;
extern const struct inode_operations ext4_fast_symlink_inode_operations;
+/* sysfs.c */
+extern int ext4_register_sysfs(struct super_block *sb);
+extern int __init ext4_init_sysfs(void);
+extern void ext4_exit_sysfs(void);
+
/* block_validity */
extern void ext4_release_system_zone(struct super_block *sb);
extern int ext4_setup_system_zone(struct super_block *sb);