.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* -*- mode: c; c-basic-offset: 8; -*- |
---|
2 | 3 | * vim: noexpandtab sw=8 ts=8 sts=0: |
---|
3 | 4 | * |
---|
4 | 5 | * refcounttree.h |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
16 | 8 | */ |
---|
17 | 9 | #ifndef OCFS2_REFCOUNTTREE_H |
---|
18 | 10 | #define OCFS2_REFCOUNTTREE_H |
---|
.. | .. |
---|
115 | 107 | const char __user *oldname, |
---|
116 | 108 | const char __user *newname, |
---|
117 | 109 | 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); |
---|
124 | 128 | |
---|
125 | 129 | #endif /* OCFS2_REFCOUNTTREE_H */ |
---|