diff options
author | Steven French <smfrench@gmail.com> | 2013-10-09 20:55:53 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-11-02 12:52:41 -0500 |
commit | af6a12ea8d4bb39a87527835b943bde4215897e5 (patch) | |
tree | a237a3054cd667520b22e4bf27009a1f36e79160 /fs/cifs/cifsglob.h | |
parent | 2167114c6ea6e76fd84e368bae5389d37dd156aa (diff) | |
download | linux-af6a12ea8d4bb39a87527835b943bde4215897e5.tar.gz linux-af6a12ea8d4bb39a87527835b943bde4215897e5.tar.bz2 linux-af6a12ea8d4bb39a87527835b943bde4215897e5.zip |
Query File System Alignment
In SMB3 it is now possible to query the file system
alignment info, and the preferred (for performance)
sector size and whether the underlying disk
has no seek penalty (like SSD).
Query this information at mount time for SMB3,
and make it visible in /proc/fs/cifs/DebugData
for debugging purposes.
This alignment information and preferred sector
size info will be helpful for the copy offload
patches to setup the right chunks in the CopyChunk
requests. Presumably the knowledge that the
underlying disk is SSD could also help us
make better readahead and writebehind
decisions (something to look at in the future).
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 670da1e55be7..26b1c1dc93f6 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -853,6 +853,8 @@ struct cifs_tcon { __u32 maximal_access; __u32 vol_serial_number; __le64 vol_create_time; + __u32 ss_flags; /* sector size flags */ + __u32 perf_sector_size; /* best sector size for perf */ #endif /* CONFIG_CIFS_SMB2 */ #ifdef CONFIG_CIFS_FSCACHE u64 resource_id; /* server resource id */ |