Zhen Kong | ee7bdc6 | 2019-03-14 10:55:19 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* |
| 3 | * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _PFK_F2FS_H_ |
| 7 | #define _PFK_F2FS_H_ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/fs.h> |
| 11 | #include <crypto/ice.h> |
| 12 | #include "pfk_internal.h" |
| 13 | |
| 14 | bool pfk_is_f2fs_type(const struct inode *inode); |
| 15 | |
| 16 | int pfk_f2fs_parse_inode(const struct bio *bio, |
| 17 | const struct inode *inode, |
| 18 | struct pfk_key_info *key_info, |
| 19 | enum ice_cryto_algo_mode *algo, |
| 20 | bool *is_pfe); |
| 21 | |
| 22 | bool pfk_f2fs_allow_merge_bio(const struct bio *bio1, |
| 23 | const struct bio *bio2, const struct inode *inode1, |
| 24 | const struct inode *inode2); |
| 25 | |
| 26 | int __init pfk_f2fs_init(void); |
| 27 | |
| 28 | void pfk_f2fs_deinit(void); |
| 29 | |
| 30 | #endif /* _PFK_F2FS_H_ */ |