162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci *   Copyright (C) International Business Machines Corp., 2000-2001
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef	_H_JFS_INODE
662306a36Sopenharmony_ci#define _H_JFS_INODE
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct fid;
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciextern struct inode *ialloc(struct inode *, umode_t);
1162306a36Sopenharmony_ciextern int jfs_fsync(struct file *, loff_t, loff_t, int);
1262306a36Sopenharmony_ciextern int jfs_fileattr_get(struct dentry *dentry, struct fileattr *fa);
1362306a36Sopenharmony_ciextern int jfs_fileattr_set(struct mnt_idmap *idmap,
1462306a36Sopenharmony_ci			    struct dentry *dentry, struct fileattr *fa);
1562306a36Sopenharmony_ciextern long jfs_ioctl(struct file *, unsigned int, unsigned long);
1662306a36Sopenharmony_ciextern struct inode *jfs_iget(struct super_block *, unsigned long);
1762306a36Sopenharmony_ciextern int jfs_commit_inode(struct inode *, int);
1862306a36Sopenharmony_ciextern int jfs_write_inode(struct inode *, struct writeback_control *);
1962306a36Sopenharmony_ciextern void jfs_evict_inode(struct inode *);
2062306a36Sopenharmony_ciextern void jfs_dirty_inode(struct inode *, int);
2162306a36Sopenharmony_ciextern void jfs_truncate(struct inode *);
2262306a36Sopenharmony_ciextern void jfs_truncate_nolock(struct inode *, loff_t);
2362306a36Sopenharmony_ciextern void jfs_free_zero_link(struct inode *);
2462306a36Sopenharmony_ciextern struct dentry *jfs_get_parent(struct dentry *dentry);
2562306a36Sopenharmony_ciextern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
2662306a36Sopenharmony_ci	int fh_len, int fh_type);
2762306a36Sopenharmony_ciextern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
2862306a36Sopenharmony_ci	int fh_len, int fh_type);
2962306a36Sopenharmony_ciextern void jfs_set_inode_flags(struct inode *);
3062306a36Sopenharmony_ciextern int jfs_get_block(struct inode *, sector_t, struct buffer_head *, int);
3162306a36Sopenharmony_ciextern int jfs_setattr(struct mnt_idmap *, struct dentry *, struct iattr *);
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciextern const struct address_space_operations jfs_aops;
3462306a36Sopenharmony_ciextern const struct inode_operations jfs_dir_inode_operations;
3562306a36Sopenharmony_ciextern const struct file_operations jfs_dir_operations;
3662306a36Sopenharmony_ciextern const struct inode_operations jfs_file_inode_operations;
3762306a36Sopenharmony_ciextern const struct file_operations jfs_file_operations;
3862306a36Sopenharmony_ciextern const struct inode_operations jfs_symlink_inode_operations;
3962306a36Sopenharmony_ciextern const struct inode_operations jfs_fast_symlink_inode_operations;
4062306a36Sopenharmony_ciextern const struct dentry_operations jfs_ci_dentry_operations;
4162306a36Sopenharmony_ci#endif				/* _H_JFS_INODE */
42