xref: /OK3568_Linux_fs/kernel/fs/jfs/jfs_inode.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *   Copyright (C) International Business Machines Corp., 2000-2001
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun #ifndef	_H_JFS_INODE
6*4882a593Smuzhiyun #define _H_JFS_INODE
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun struct fid;
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun extern struct inode *ialloc(struct inode *, umode_t);
11*4882a593Smuzhiyun extern int jfs_fsync(struct file *, loff_t, loff_t, int);
12*4882a593Smuzhiyun extern long jfs_ioctl(struct file *, unsigned int, unsigned long);
13*4882a593Smuzhiyun extern long jfs_compat_ioctl(struct file *, unsigned int, unsigned long);
14*4882a593Smuzhiyun extern struct inode *jfs_iget(struct super_block *, unsigned long);
15*4882a593Smuzhiyun extern int jfs_commit_inode(struct inode *, int);
16*4882a593Smuzhiyun extern int jfs_write_inode(struct inode *, struct writeback_control *);
17*4882a593Smuzhiyun extern void jfs_evict_inode(struct inode *);
18*4882a593Smuzhiyun extern void jfs_dirty_inode(struct inode *, int);
19*4882a593Smuzhiyun extern void jfs_truncate(struct inode *);
20*4882a593Smuzhiyun extern void jfs_truncate_nolock(struct inode *, loff_t);
21*4882a593Smuzhiyun extern void jfs_free_zero_link(struct inode *);
22*4882a593Smuzhiyun extern struct dentry *jfs_get_parent(struct dentry *dentry);
23*4882a593Smuzhiyun extern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
24*4882a593Smuzhiyun 	int fh_len, int fh_type);
25*4882a593Smuzhiyun extern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
26*4882a593Smuzhiyun 	int fh_len, int fh_type);
27*4882a593Smuzhiyun extern void jfs_set_inode_flags(struct inode *);
28*4882a593Smuzhiyun extern int jfs_get_block(struct inode *, sector_t, struct buffer_head *, int);
29*4882a593Smuzhiyun extern int jfs_setattr(struct dentry *, struct iattr *);
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun extern const struct address_space_operations jfs_aops;
32*4882a593Smuzhiyun extern const struct inode_operations jfs_dir_inode_operations;
33*4882a593Smuzhiyun extern const struct file_operations jfs_dir_operations;
34*4882a593Smuzhiyun extern const struct inode_operations jfs_file_inode_operations;
35*4882a593Smuzhiyun extern const struct file_operations jfs_file_operations;
36*4882a593Smuzhiyun extern const struct inode_operations jfs_symlink_inode_operations;
37*4882a593Smuzhiyun extern const struct inode_operations jfs_fast_symlink_inode_operations;
38*4882a593Smuzhiyun extern const struct dentry_operations jfs_ci_dentry_operations;
39*4882a593Smuzhiyun #endif				/* _H_JFS_INODE */
40