Thomas Gleixner | 328970d | 2019-05-24 12:04:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 2 | /* -*- mode: c; c-basic-offset: 8; -*- |
| 3 | * vim: noexpandtab sw=8 ts=8 sts=0: |
| 4 | * |
| 5 | * namei.h |
| 6 | * |
| 7 | * Function prototypes |
| 8 | * |
| 9 | * Copyright (C) 2002, 2004 Oracle. All rights reserved. |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef OCFS2_NAMEI_H |
| 13 | #define OCFS2_NAMEI_H |
| 14 | |
Joseph Qi | 30edc43 | 2015-11-05 18:44:01 -0800 | [diff] [blame] | 15 | #define OCFS2_DIO_ORPHAN_PREFIX "dio-" |
| 16 | #define OCFS2_DIO_ORPHAN_PREFIX_LEN 4 |
| 17 | |
Arjan van de Ven | 92e1d5b | 2007-02-12 00:55:39 -0800 | [diff] [blame] | 18 | extern const struct inode_operations ocfs2_dir_iops; |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 19 | |
| 20 | struct dentry *ocfs2_get_parent(struct dentry *child); |
| 21 | |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 22 | int ocfs2_orphan_del(struct ocfs2_super *osb, |
Mark Fasheh | 1fabe14 | 2006-10-09 18:11:45 -0700 | [diff] [blame] | 23 | handle_t *handle, |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 24 | struct inode *orphan_dir_inode, |
| 25 | struct inode *inode, |
Joseph Qi | 06ee5c7 | 2015-02-16 15:59:54 -0800 | [diff] [blame] | 26 | struct buffer_head *orphan_dir_bh, |
| 27 | bool dio); |
Tao Ma | bc13d34 | 2009-08-18 11:44:14 +0800 | [diff] [blame] | 28 | int ocfs2_create_inode_in_orphan(struct inode *dir, |
| 29 | int mode, |
| 30 | struct inode **new_inode); |
Joseph Qi | 06ee5c7 | 2015-02-16 15:59:54 -0800 | [diff] [blame] | 31 | int ocfs2_add_inode_to_orphan(struct ocfs2_super *osb, |
| 32 | struct inode *inode); |
| 33 | int ocfs2_del_inode_from_orphan(struct ocfs2_super *osb, |
Joseph Qi | cf1776a | 2015-06-24 16:54:59 -0700 | [diff] [blame] | 34 | struct inode *inode, struct buffer_head *di_bh, |
| 35 | int update_isize, loff_t end); |
Tao Ma | bc13d34 | 2009-08-18 11:44:14 +0800 | [diff] [blame] | 36 | int ocfs2_mv_orphaned_inode_to_new(struct inode *dir, |
| 37 | struct inode *new_inode, |
| 38 | struct dentry *new_dentry); |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 39 | |
Mark Fasheh | ccd979b | 2005-12-15 14:31:24 -0800 | [diff] [blame] | 40 | #endif /* OCFS2_NAMEI_H */ |