0001
0002
0003
0004
0005
0006
0007 #ifndef __SUPER_DOT_H__
0008 #define __SUPER_DOT_H__
0009
0010 #include <linux/fs.h>
0011 #include <linux/dcache.h>
0012 #include "incore.h"
0013
0014
0015 #define GFS2_FS_FORMAT_MIN (1801)
0016 #define GFS2_FS_FORMAT_MAX (1802)
0017
0018 extern void gfs2_lm_unmount(struct gfs2_sbd *sdp);
0019
0020 static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp)
0021 {
0022 unsigned int x;
0023 spin_lock(&sdp->sd_jindex_spin);
0024 x = sdp->sd_journals;
0025 spin_unlock(&sdp->sd_jindex_spin);
0026 return x;
0027 }
0028
0029 extern void gfs2_jindex_free(struct gfs2_sbd *sdp);
0030
0031 extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid);
0032 extern int gfs2_jdesc_check(struct gfs2_jdesc *jd);
0033 extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename,
0034 struct gfs2_inode **ipp);
0035
0036 extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp);
0037 extern void gfs2_make_fs_ro(struct gfs2_sbd *sdp);
0038 extern void gfs2_online_uevent(struct gfs2_sbd *sdp);
0039 extern int gfs2_statfs_init(struct gfs2_sbd *sdp);
0040 extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
0041 s64 dinodes);
0042 extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc,
0043 const void *buf);
0044 extern void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc,
0045 void *buf);
0046 extern void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh);
0047 extern int gfs2_statfs_sync(struct super_block *sb, int type);
0048 extern void gfs2_freeze_func(struct work_struct *work);
0049
0050 extern void free_local_statfs_inodes(struct gfs2_sbd *sdp);
0051 extern struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp,
0052 unsigned int index);
0053 extern void free_sbd(struct gfs2_sbd *sdp);
0054
0055 extern struct file_system_type gfs2_fs_type;
0056 extern struct file_system_type gfs2meta_fs_type;
0057 extern const struct export_operations gfs2_export_ops;
0058 extern const struct super_operations gfs2_super_ops;
0059 extern const struct dentry_operations gfs2_dops;
0060
0061 extern const struct xattr_handler *gfs2_xattr_handlers_max[];
0062 extern const struct xattr_handler **gfs2_xattr_handlers_min;
0063
0064 #endif
0065