CIFS: Introduce helper function to get page offset and length in smb_rqst
authorLong Li <longli@microsoft.com>
Wed, 30 May 2018 19:47:58 +0000 (12:47 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Jun 2018 22:41:00 +0000 (17:41 -0500)
commit7b7f2bdf829ecf21845c0a571847ea18c6934970
tree216f146f9c716800d304ed0ac329fb2ad91977b0
parentc06a0f2dff704d9f734ff0d3d4812ccfc46ed8d0
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>
fs/cifs/cifsproto.h
fs/cifs/misc.c