hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/ocfs2/refcounttree.h
....@@ -1,18 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* -*- mode: c; c-basic-offset: 8; -*-
23 * vim: noexpandtab sw=8 ts=8 sts=0:
34 *
45 * refcounttree.h
56 *
67 * Copyright (C) 2009 Oracle. All rights reserved.
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public
10
- * License version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
168 */
179 #ifndef OCFS2_REFCOUNTTREE_H
1810 #define OCFS2_REFCOUNTTREE_H
....@@ -115,11 +107,23 @@
115107 const char __user *oldname,
116108 const char __user *newname,
117109 bool preserve);
118
-int ocfs2_reflink_remap_range(struct file *file_in,
119
- loff_t pos_in,
120
- struct file *file_out,
121
- loff_t pos_out,
122
- u64 len,
123
- bool is_dedupe);
110
+loff_t ocfs2_reflink_remap_blocks(struct inode *s_inode,
111
+ struct buffer_head *s_bh,
112
+ loff_t pos_in,
113
+ struct inode *t_inode,
114
+ struct buffer_head *t_bh,
115
+ loff_t pos_out,
116
+ loff_t len);
117
+int ocfs2_reflink_inodes_lock(struct inode *s_inode,
118
+ struct buffer_head **bh1,
119
+ struct inode *t_inode,
120
+ struct buffer_head **bh2);
121
+void ocfs2_reflink_inodes_unlock(struct inode *s_inode,
122
+ struct buffer_head *s_bh,
123
+ struct inode *t_inode,
124
+ struct buffer_head *t_bh);
125
+int ocfs2_reflink_update_dest(struct inode *dest,
126
+ struct buffer_head *d_bh,
127
+ loff_t newlen);
124128
125129 #endif /* OCFS2_REFCOUNTTREE_H */