1 LU-12275 sec: disable bio functions on client
3 diff --git a/libcfs/include/libcfs/crypto/llcrypt.h b/libcfs/include/libcfs/crypto/llcrypt.h
4 index b152915fb1..93e1766edc 100644
5 --- a/libcfs/include/libcfs/crypto/llcrypt.h
6 +++ b/libcfs/include/libcfs/crypto/llcrypt.h
7 @@ -267,12 +267,14 @@ static inline bool llcrypt_match_name(const struct llcrypt_name *fname,
8 return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
11 +#ifdef HAVE_SERVER_SUPPORT
13 extern void llcrypt_decrypt_bio(struct bio *);
14 extern void llcrypt_enqueue_decrypt_bio(struct llcrypt_ctx *ctx,
16 extern int llcrypt_zeroout_range(const struct inode *, pgoff_t, sector_t,
21 extern int llcrypt_file_open(struct inode *inode, struct file *filp);
22 @@ -525,6 +527,7 @@ static inline bool llcrypt_match_name(const struct llcrypt_name *fname,
23 return !memcmp(de_name, fname->disk_name.name, fname->disk_name.len);
26 +#ifdef HAVE_SERVER_SUPPORT
28 static inline void llcrypt_decrypt_bio(struct bio *bio)
30 @@ -540,6 +543,7 @@ static inline int llcrypt_zeroout_range(const struct inode *inode, pgoff_t lblk,
38 diff --git a/libcfs/libcfs/crypto/bio.c b/libcfs/libcfs/crypto/bio.c
39 index 78b56cbd36..02ecacff5e 100644
40 --- a/libcfs/libcfs/crypto/bio.c
41 +++ b/libcfs/libcfs/crypto/bio.c
46 +#ifdef HAVE_SERVER_SUPPORT
47 #include <linux/pagemap.h>
48 #include <linux/module.h>
49 #include <linux/bio.h>
50 @@ -126,3 +127,4 @@ errout:
53 EXPORT_SYMBOL(llcrypt_zeroout_range);