0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OCFS2_NAMEI_H
0011 #define OCFS2_NAMEI_H
0012
0013 #define OCFS2_DIO_ORPHAN_PREFIX "dio-"
0014 #define OCFS2_DIO_ORPHAN_PREFIX_LEN 4
0015
0016 extern const struct inode_operations ocfs2_dir_iops;
0017
0018 struct dentry *ocfs2_get_parent(struct dentry *child);
0019
0020 int ocfs2_orphan_del(struct ocfs2_super *osb,
0021 handle_t *handle,
0022 struct inode *orphan_dir_inode,
0023 struct inode *inode,
0024 struct buffer_head *orphan_dir_bh,
0025 bool dio);
0026 int ocfs2_create_inode_in_orphan(struct inode *dir,
0027 int mode,
0028 struct inode **new_inode);
0029 int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb,
0030 struct inode *inode);
0031 int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb,
0032 struct inode *inode, struct buffer_head *di_bh,
0033 int update_isize, loff_t end);
0034 int ocfs2_mv_orphaned_inode_to_new(struct inode *dir,
0035 struct inode *new_inode,
0036 struct dentry *new_dentry);
0037
0038 #endif