summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2019-04-25 08:45:29 +0200
committerSteve French <stfrench@microsoft.com>2019-05-08 06:24:55 +0200
commit2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4 (patch)
treecd2e5193de15784d7e50ce1a42d2a55ae8727f5f /fs/cifs/cifsglob.h
parentSMB3: Add defines for new negotiate contexts (diff)
downloadlinux-2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4.tar.xz
linux-2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4.zip
cifs: add fiemap support
Useful for improved copy performance as well as for applications which query allocated ranges of sparse files. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 0dc55f4e6929..5ffe0e538cec 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -493,6 +493,9 @@ struct smb_version_operations {
char *full_path,
umode_t mode,
dev_t device_number);
+ /* version specific fiemap implementation */
+ int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *,
+ struct fiemap_extent_info *, u64, u64);
};
struct smb_version_values {