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 176f04c1c7SSteven Whitehouse extern 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 288633ecfaSSteven Whitehouse extern void gfs2_jindex_free(struct gfs2_sbd *sdp); 29fefc03bfSSteven Whitehouse 30f55073ffSSteven Whitehouse extern int gfs2_mount_args(struct gfs2_args *args, char *data); 31b3b94faaSDavid Teigland 326f04c1c7SSteven Whitehouse extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 336f04c1c7SSteven Whitehouse extern int gfs2_jdesc_check(struct gfs2_jdesc *jd); 346f04c1c7SSteven Whitehouse 356f04c1c7SSteven Whitehouse extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 36b3b94faaSDavid Teigland struct gfs2_inode **ipp); 37b3b94faaSDavid Teigland 386f04c1c7SSteven Whitehouse extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 398633ecfaSSteven Whitehouse extern void gfs2_online_uevent(struct gfs2_sbd *sdp); 406f04c1c7SSteven Whitehouse extern int gfs2_statfs_init(struct gfs2_sbd *sdp); 416f04c1c7SSteven Whitehouse extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, 426f04c1c7SSteven Whitehouse s64 dinodes); 431946f70aSBenjamin Marzinski extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, 441946f70aSBenjamin Marzinski const void *buf); 451946f70aSBenjamin Marzinski extern void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, 461946f70aSBenjamin Marzinski struct buffer_head *l_bh); 476f04c1c7SSteven Whitehouse extern int gfs2_statfs_sync(struct gfs2_sbd *sdp); 48b3b94faaSDavid Teigland 496f04c1c7SSteven Whitehouse extern int gfs2_freeze_fs(struct gfs2_sbd *sdp); 506f04c1c7SSteven Whitehouse extern void gfs2_unfreeze_fs(struct gfs2_sbd *sdp); 51b3b94faaSDavid Teigland 52b2760583SSteven Whitehouse extern struct file_system_type gfs2_fs_type; 53b2760583SSteven Whitehouse extern struct file_system_type gfs2meta_fs_type; 54b2760583SSteven Whitehouse extern const struct export_operations gfs2_export_ops; 55b2760583SSteven Whitehouse extern const struct super_operations gfs2_super_ops; 5692cecbbfSAl Viro extern const struct dentry_operations gfs2_dops; 5740b78a32SSteven Whitehouse extern struct xattr_handler *gfs2_xattr_handlers[]; 58b2760583SSteven Whitehouse 59b3b94faaSDavid Teigland #endif /* __SUPER_DOT_H__ */ 60b3b94faaSDavid Teigland 61