diff options
author | Jan Kara <jack@suse.cz> | 2017-04-12 06:24:28 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-20 14:09:55 -0400 |
commit | fca39346a55bb7196888ffc77d9e3557340d1d0b (patch) | |
tree | f75d429d6742ebb23d80fec68d768a4eed8f560d /include/linux/fs.h | |
parent | 62bf42adc4f3d5f564d11c36f90dab31f0652d33 (diff) |
fs: Provide infrastructure for dynamic BDIs in filesystems
Provide helper functions for setting up dynamically allocated
backing_dev_info structures for filesystems and cleaning them up on
superblock destruction.
CC: linux-mtd@lists.infradead.org
CC: linux-nfs@vger.kernel.org
CC: Petr Vandrovec <petr@vandrovec.name>
CC: linux-nilfs@vger.kernel.org
CC: cluster-devel@redhat.com
CC: osd-dev@open-osd.org
CC: codalist@coda.cs.cmu.edu
CC: linux-afs@lists.infradead.org
CC: ecryptfs@vger.kernel.org
CC: linux-cifs@vger.kernel.org
CC: ceph-devel@vger.kernel.org
CC: linux-btrfs@vger.kernel.org
CC: v9fs-developer@lists.sourceforge.net
CC: lustre-devel@lists.lustre.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 7251f7bb45e8..98cf14ea78c0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1272,6 +1272,9 @@ struct mm_struct; | |||
1272 | /* sb->s_iflags to limit user namespace mounts */ | 1272 | /* sb->s_iflags to limit user namespace mounts */ |
1273 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ | 1273 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ |
1274 | 1274 | ||
1275 | /* Temporary flag until all filesystems are converted to dynamic bdis */ | ||
1276 | #define SB_I_DYNBDI 0x00000100 | ||
1277 | |||
1275 | /* Possible states of 'frozen' field */ | 1278 | /* Possible states of 'frozen' field */ |
1276 | enum { | 1279 | enum { |
1277 | SB_UNFROZEN = 0, /* FS is unfrozen */ | 1280 | SB_UNFROZEN = 0, /* FS is unfrozen */ |
@@ -2121,6 +2124,9 @@ extern int vfs_ustat(dev_t, struct kstatfs *); | |||
2121 | extern int freeze_super(struct super_block *super); | 2124 | extern int freeze_super(struct super_block *super); |
2122 | extern int thaw_super(struct super_block *super); | 2125 | extern int thaw_super(struct super_block *super); |
2123 | extern bool our_mnt(struct vfsmount *mnt); | 2126 | extern bool our_mnt(struct vfsmount *mnt); |
2127 | extern __printf(2, 3) | ||
2128 | int super_setup_bdi_name(struct super_block *sb, char *fmt, ...); | ||
2129 | extern int super_setup_bdi(struct super_block *sb); | ||
2124 | 2130 | ||
2125 | extern int current_umask(void); | 2131 | extern int current_umask(void); |
2126 | 2132 | ||