Linux Audio

Check our new training course

Loading...
Note: File does not exist in v4.17.
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright (c) 2018-2024 Oracle.  All Rights Reserved.
 4 * Author: Darrick J. Wong <djwong@kernel.org>
 5 */
 6#ifndef __XFS_METAFILE_H__
 7#define __XFS_METAFILE_H__
 8
 9/* All metadata files must have these flags set. */
10#define XFS_METAFILE_DIFLAGS	(XFS_DIFLAG_IMMUTABLE | \
11				 XFS_DIFLAG_SYNC | \
12				 XFS_DIFLAG_NOATIME | \
13				 XFS_DIFLAG_NODUMP | \
14				 XFS_DIFLAG_NODEFRAG)
15
16/* All metadata directories must have these flags set. */
17#define XFS_METADIR_DIFLAGS	(XFS_METAFILE_DIFLAGS | \
18				 XFS_DIFLAG_NOSYMLINKS)
19
20void xfs_metafile_set_iflag(struct xfs_trans *tp, struct xfs_inode *ip,
21		enum xfs_metafile_type metafile_type);
22void xfs_metafile_clear_iflag(struct xfs_trans *tp, struct xfs_inode *ip);
23
24/* Code specific to kernel/userspace; must be provided externally. */
25
26int xfs_trans_metafile_iget(struct xfs_trans *tp, xfs_ino_t ino,
27		enum xfs_metafile_type metafile_type, struct xfs_inode **ipp);
28int xfs_metafile_iget(struct xfs_mount *mp, xfs_ino_t ino,
29		enum xfs_metafile_type metafile_type, struct xfs_inode **ipp);
30
31#endif /* __XFS_METAFILE_H__ */