blob: 1b00bd840a237dcfa6915d51a77240ee7fa43c81 [file] [log] [blame]
Neeraj Soni36c65122018-04-18 21:04:46 +05301/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _PFK_F2FS_H_
14#define _PFK_F2FS_H_
15
16#include <linux/types.h>
17#include <linux/fs.h>
18#include <crypto/ice.h>
19#include "pfk_internal.h"
20
21bool pfk_is_f2fs_type(const struct inode *inode);
22
23int pfk_f2fs_parse_inode(const struct bio *bio,
24 const struct inode *inode,
25 struct pfk_key_info *key_info,
26 enum ice_cryto_algo_mode *algo,
Neeraj Soniefb33112018-08-17 20:39:35 +053027 bool *is_pfe,
Neeraj Soniefb33112018-08-17 20:39:35 +053028 const char *storage_type);
Neeraj Soni36c65122018-04-18 21:04:46 +053029
30bool pfk_f2fs_allow_merge_bio(const struct bio *bio1,
31 const struct bio *bio2, const struct inode *inode1,
32 const struct inode *inode2);
33
34int __init pfk_f2fs_init(void);
35
36void pfk_f2fs_deinit(void);
37
38#endif /* _PFK_F2FS_H_ */