1b3b94faaSDavid Teigland /* 2b3b94faaSDavid Teigland * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 33a8a9a10SSteven Whitehouse * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 4b3b94faaSDavid Teigland * 5b3b94faaSDavid Teigland * This copyrighted material is made available to anyone wishing to use, 6b3b94faaSDavid Teigland * modify, copy, or redistribute it subject to the terms and conditions 7e9fc2aa0SSteven Whitehouse * of the GNU General Public License version 2. 8b3b94faaSDavid Teigland */ 9b3b94faaSDavid Teigland 10b3b94faaSDavid Teigland #ifndef __SUPER_DOT_H__ 11b3b94faaSDavid Teigland #define __SUPER_DOT_H__ 12b3b94faaSDavid Teigland 13b2760583SSteven Whitehouse #include <linux/fs.h> 14b2760583SSteven Whitehouse #include <linux/dcache.h> 15f2f7ba52SSteven Whitehouse #include "incore.h" 16f2f7ba52SSteven Whitehouse 17da755fdbSSteven Whitehouse void gfs2_lm_unmount(struct gfs2_sbd *sdp); 18b3b94faaSDavid Teigland 19b3b94faaSDavid Teigland static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) 20b3b94faaSDavid Teigland { 21b3b94faaSDavid Teigland unsigned int x; 22b3b94faaSDavid Teigland spin_lock(&sdp->sd_jindex_spin); 23b3b94faaSDavid Teigland x = sdp->sd_journals; 24b3b94faaSDavid Teigland spin_unlock(&sdp->sd_jindex_spin); 25b3b94faaSDavid Teigland return x; 26b3b94faaSDavid Teigland } 27b3b94faaSDavid Teigland 28fefc03bfSSteven Whitehouse void gfs2_jindex_free(struct gfs2_sbd *sdp); 29fefc03bfSSteven Whitehouse 30b3b94faaSDavid Teigland struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 31b3b94faaSDavid Teigland int gfs2_jdesc_check(struct gfs2_jdesc *jd); 32b3b94faaSDavid Teigland 33b3b94faaSDavid Teigland int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 34b3b94faaSDavid Teigland struct gfs2_inode **ipp); 35b3b94faaSDavid Teigland 36b3b94faaSDavid Teigland int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 37b3b94faaSDavid Teigland 38b3b94faaSDavid Teigland int gfs2_statfs_init(struct gfs2_sbd *sdp); 39b3b94faaSDavid Teigland void gfs2_statfs_change(struct gfs2_sbd *sdp, 40cd915493SSteven Whitehouse s64 total, s64 free, s64 dinodes); 41b3b94faaSDavid Teigland int gfs2_statfs_sync(struct gfs2_sbd *sdp); 42b3b94faaSDavid Teigland 43b3b94faaSDavid Teigland int gfs2_freeze_fs(struct gfs2_sbd *sdp); 44b3b94faaSDavid Teigland void gfs2_unfreeze_fs(struct gfs2_sbd *sdp); 45b3b94faaSDavid Teigland 46b2760583SSteven Whitehouse extern struct file_system_type gfs2_fs_type; 47b2760583SSteven Whitehouse extern struct file_system_type gfs2meta_fs_type; 48b2760583SSteven Whitehouse extern const struct export_operations gfs2_export_ops; 49b2760583SSteven Whitehouse extern const struct super_operations gfs2_super_ops; 5092cecbbfSAl Viro extern const struct dentry_operations gfs2_dops; 51b2760583SSteven Whitehouse 52b3b94faaSDavid Teigland #endif /* __SUPER_DOT_H__ */ 53b3b94faaSDavid Teigland 54