17336d0e6SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2b3b94faaSDavid Teigland /* 3b3b94faaSDavid Teigland * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. 43a8a9a10SSteven Whitehouse * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. 5b3b94faaSDavid Teigland */ 6b3b94faaSDavid Teigland 7b3b94faaSDavid Teigland #ifndef __SUPER_DOT_H__ 8b3b94faaSDavid Teigland #define __SUPER_DOT_H__ 9b3b94faaSDavid Teigland 10b2760583SSteven Whitehouse #include <linux/fs.h> 11b2760583SSteven Whitehouse #include <linux/dcache.h> 12f2f7ba52SSteven Whitehouse #include "incore.h" 13f2f7ba52SSteven Whitehouse 146f04c1c7SSteven Whitehouse extern void gfs2_lm_unmount(struct gfs2_sbd *sdp); 15b3b94faaSDavid Teigland 16b3b94faaSDavid Teigland static inline unsigned int gfs2_jindex_size(struct gfs2_sbd *sdp) 17b3b94faaSDavid Teigland { 18b3b94faaSDavid Teigland unsigned int x; 19b3b94faaSDavid Teigland spin_lock(&sdp->sd_jindex_spin); 20b3b94faaSDavid Teigland x = sdp->sd_journals; 21b3b94faaSDavid Teigland spin_unlock(&sdp->sd_jindex_spin); 22b3b94faaSDavid Teigland return x; 23b3b94faaSDavid Teigland } 24b3b94faaSDavid Teigland 258633ecfaSSteven Whitehouse extern void gfs2_jindex_free(struct gfs2_sbd *sdp); 26fefc03bfSSteven Whitehouse 27f55073ffSSteven Whitehouse extern int gfs2_mount_args(struct gfs2_args *args, char *data); 28b3b94faaSDavid Teigland 296f04c1c7SSteven Whitehouse extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 306f04c1c7SSteven Whitehouse extern int gfs2_jdesc_check(struct gfs2_jdesc *jd); 316f04c1c7SSteven Whitehouse 326f04c1c7SSteven Whitehouse extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 33b3b94faaSDavid Teigland struct gfs2_inode **ipp); 34b3b94faaSDavid Teigland 356f04c1c7SSteven Whitehouse extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 368633ecfaSSteven Whitehouse extern void gfs2_online_uevent(struct gfs2_sbd *sdp); 376f04c1c7SSteven Whitehouse extern int gfs2_statfs_init(struct gfs2_sbd *sdp); 386f04c1c7SSteven Whitehouse extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, 396f04c1c7SSteven Whitehouse s64 dinodes); 401946f70aSBenjamin Marzinski extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, 411946f70aSBenjamin Marzinski const void *buf); 421946f70aSBenjamin Marzinski extern void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh, 431946f70aSBenjamin Marzinski struct buffer_head *l_bh); 448c42d637SSteven Whitehouse extern int gfs2_statfs_sync(struct super_block *sb, int type); 452e60d768SBenjamin Marzinski extern void gfs2_freeze_func(struct work_struct *work); 46b3b94faaSDavid Teigland 47b2760583SSteven Whitehouse extern struct file_system_type gfs2_fs_type; 48b2760583SSteven Whitehouse extern struct file_system_type gfs2meta_fs_type; 49b2760583SSteven Whitehouse extern const struct export_operations gfs2_export_ops; 50b2760583SSteven Whitehouse extern const struct super_operations gfs2_super_ops; 5192cecbbfSAl Viro extern const struct dentry_operations gfs2_dops; 52b7bb0a12SStephen Hemminger extern const struct xattr_handler *gfs2_xattr_handlers[]; 53b2760583SSteven Whitehouse 54b3b94faaSDavid Teigland #endif /* __SUPER_DOT_H__ */ 55b3b94faaSDavid Teigland 56