• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 void hmdfs_remote_del_wr_opened_inode(struct hmdfs_peer *conn,
18 				      struct hmdfs_inode_info *info);
19 
20 void hmdfs_remote_add_wr_opened_inode_nolock(struct hmdfs_peer *conn,
21 					     struct hmdfs_inode_info *info);
22 
23 ssize_t hmdfs_file_write_iter_remote_nocheck(struct kiocb *iocb,
24 					     struct iov_iter *iter);
25 
26 int 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