xref: /kernel/linux/linux-5.10/fs/hmdfs/file_remote.h (revision 8c2ecf20)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fs/hmdfs/file_remote.h
4 *
5 * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
6 */
7
8#ifndef HMDFS_FILE_REMOTE_H
9#define HMDFS_FILE_REMOTE_H
10
11#include <linux/fs.h>
12#include <linux/uio.h>
13
14#include "hmdfs.h"
15#include "comm/connection.h"
16
17void hmdfs_remote_del_wr_opened_inode(struct hmdfs_peer *conn,
18				      struct hmdfs_inode_info *info);
19
20void hmdfs_remote_add_wr_opened_inode_nolock(struct hmdfs_peer *conn,
21					     struct hmdfs_inode_info *info);
22
23ssize_t hmdfs_file_write_iter_remote_nocheck(struct kiocb *iocb,
24					     struct iov_iter *iter);
25
26int analysis_dentry_file_from_con(struct hmdfs_sb_info *sbi,
27					 struct file *file,
28					 struct file *handler,
29					 struct dir_context *ctx);
30#endif
31