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 276f04c1c7SSteven Whitehouse extern struct gfs2_jdesc *gfs2_jdesc_find(struct gfs2_sbd *sdp, unsigned int jid); 286f04c1c7SSteven Whitehouse extern int gfs2_jdesc_check(struct gfs2_jdesc *jd); 296f04c1c7SSteven Whitehouse extern int gfs2_lookup_in_master_dir(struct gfs2_sbd *sdp, char *filename, 30b3b94faaSDavid Teigland struct gfs2_inode **ipp); 31b3b94faaSDavid Teigland 326f04c1c7SSteven Whitehouse extern int gfs2_make_fs_rw(struct gfs2_sbd *sdp); 331f52aa08SAndrew Price extern int gfs2_make_fs_ro(struct gfs2_sbd *sdp); 348633ecfaSSteven Whitehouse extern void gfs2_online_uevent(struct gfs2_sbd *sdp); 356f04c1c7SSteven Whitehouse extern int gfs2_statfs_init(struct gfs2_sbd *sdp); 366f04c1c7SSteven Whitehouse extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free, 376f04c1c7SSteven Whitehouse s64 dinodes); 381946f70aSBenjamin Marzinski extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, 391946f70aSBenjamin Marzinski const void *buf); 4073092698SAbhi Das extern void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc, 4173092698SAbhi Das 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 4797fd734bSAbhi Das extern void free_local_statfs_inodes(struct gfs2_sbd *sdp); 4897fd734bSAbhi Das extern struct inode *find_local_statfs_inode(struct gfs2_sbd *sdp, 4997fd734bSAbhi Das unsigned int index); 502a27b755SAndreas Gruenbacher extern void free_sbd(struct gfs2_sbd *sdp); 512a27b755SAndreas Gruenbacher 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; 57b7bb0a12SStephen Hemminger extern const struct xattr_handler *gfs2_xattr_handlers[]; 58b2760583SSteven Whitehouse 59b3b94faaSDavid Teigland #endif /* __SUPER_DOT_H__ */ 60b3b94faaSDavid Teigland 61