fs/xfs/libxfs/xfs_inode_util.h

Source file repositories/reference/linux-study-clean/fs/xfs/libxfs/xfs_inode_util.h

File Facts

System
Linux kernel
Corpus path
fs/xfs/libxfs/xfs_inode_util.h
Extension
.h
Size
2223 bytes
Lines
63
Domain
Core OS
Bucket
VFS And Filesystem Core
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct xfs_icreate_args {
	struct mnt_idmap	*idmap;
	struct xfs_inode	*pip;	/* parent inode or null */
	dev_t			rdev;
	umode_t			mode;

#define XFS_ICREATE_TMPFILE	(1U << 0)  /* create an unlinked file */
#define XFS_ICREATE_INIT_XATTRS	(1U << 1)  /* will set xattrs immediately */
#define XFS_ICREATE_UNLINKABLE	(1U << 2)  /* cannot link into dir tree */
	uint16_t		flags;
};

/*
 * Flags for xfs_trans_ichgtime().
 */
#define	XFS_ICHGTIME_MOD	0x1	/* data fork modification timestamp */
#define	XFS_ICHGTIME_CHG	0x2	/* inode field change timestamp */
#define	XFS_ICHGTIME_CREATE	0x4	/* inode create timestamp */
#define	XFS_ICHGTIME_ACCESS	0x8	/* last access timestamp */
void xfs_trans_ichgtime(struct xfs_trans *tp, struct xfs_inode *ip, int flags);

void xfs_inode_init(struct xfs_trans *tp, const struct xfs_icreate_args *args,
		struct xfs_inode *ip);

int xfs_inode_uninit(struct xfs_trans *tp, struct xfs_perag *pag,
		struct xfs_inode *ip, struct xfs_icluster *xic);

int xfs_iunlink(struct xfs_trans *tp, struct xfs_inode *ip);
int xfs_iunlink_remove(struct xfs_trans *tp, struct xfs_perag *pag,
		struct xfs_inode *ip);
int xfs_droplink(struct xfs_trans *tp, struct xfs_inode *ip);
void xfs_bumplink(struct xfs_trans *tp, struct xfs_inode *ip);

#endif /* __XFS_INODE_UTIL_H__ */

Annotation

Implementation Notes