summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorLong Li2018-05-30 21:47:58 +0200
committerSteve French2018-06-06 00:41:00 +0200
commit7b7f2bdf829ecf21845c0a571847ea18c6934970 (patch)
tree216f146f9c716800d304ed0ac329fb2ad91977b0 /fs/cifs/cifsproto.h
parentCIFS: Calculate the correct request length based on page offset and tail size (diff)
downloadkernel-qcow2-linux-7b7f2bdf829ecf21845c0a571847ea18c6934970.tar.gz
kernel-qcow2-linux-7b7f2bdf829ecf21845c0a571847ea18c6934970.tar.xz
kernel-qcow2-linux-7b7f2bdf829ecf21845c0a571847ea18c6934970.zip
CIFS: Introduce helper function to get page offset and length in smb_rqst
Introduce a function rqst_page_get_length to return the page offset and length for a given page in smb_rqst. This function is to be used by following patches. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index 7f0c773d5f6b..84765c8764bf 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -557,4 +557,7 @@ int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
struct sdesc **sdesc);
void cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc);
+extern void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
+ unsigned int *len, unsigned int *offset);
+
#endif /* _CIFSPROTO_H */