mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
4ca488eb45
We were already filling the Linux struct statfs anyway, and doing this trivial task directly in xfs_fs_statfs makes the code quite a bit cleaner. While I was at it I also moved copying attributes that don't change over the lifetime of the filesystem outside the superblock lock. xfs_fs_fill_super used to get the magic number and blocksize through xfs_statvfs, but assigning them directly is a lot cleaner and will save some stack space during mount. SGI-PV: 971186 SGI-Modid: xfs-linux-melb:xfs-kern:29802a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Tim Shimmin <tes@sgi.com>
27 lines
882 B
C
27 lines
882 B
C
#ifndef _XFS_VFSOPS_H
|
|
#define _XFS_VFSOPS_H 1
|
|
|
|
struct cred;
|
|
struct xfs_fid;
|
|
struct inode;
|
|
struct kstatfs;
|
|
struct xfs_mount;
|
|
struct xfs_mount_args;
|
|
|
|
int xfs_mount(struct xfs_mount *mp, struct xfs_mount_args *args,
|
|
struct cred *credp);
|
|
int xfs_unmount(struct xfs_mount *mp, int flags, struct cred *credp);
|
|
int xfs_mntupdate(struct xfs_mount *mp, int *flags,
|
|
struct xfs_mount_args *args);
|
|
int xfs_root(struct xfs_mount *mp, bhv_vnode_t **vpp);
|
|
int xfs_sync(struct xfs_mount *mp, int flags);
|
|
int xfs_vget(struct xfs_mount *mp, bhv_vnode_t **vpp, struct xfs_fid *xfid);
|
|
int xfs_parseargs(struct xfs_mount *mp, char *options,
|
|
struct xfs_mount_args *args, int update);
|
|
int xfs_showargs(struct xfs_mount *mp, struct seq_file *m);
|
|
void xfs_freeze(struct xfs_mount *mp);
|
|
void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
|
|
int lnnum);
|
|
|
|
#endif /* _XFS_VFSOPS_H */
|