vfs_gpfs: remove updating btime from stat VFS calls
commit2e8cdda78774d5ecd1b4c4e2e11edf3e0829b3b4
authorRalph Boehme <slow@samba.org>
Mon, 28 Nov 2016 11:22:04 +0000 (28 12:22 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 17 Dec 2016 08:11:13 +0000 (17 09:11 +0100)
tree755d2d31718141b78d8c823286ebb74c6a3ef794
parentadf4cea1db46f2898540c041003da5b4bd447f80
vfs_gpfs: remove updating btime from stat VFS calls

This is now handled by the vfs_gpfs_(f)get_dos_attributes. Getting rid
of this in the stat VFS functions is a huge performance saver. perf
report found that in a kernel copy workload smbd was spending
considerable CPU time in vfs_gpfs_(f|l)stat -> gpfs_get_winattrs.

Most of the time the VFS stat caller is not interested in the btime. The
SMB frontend processing around btime is designed to fetch btime together
with DOS attributes via dos_mode() in all places that need these
attributes. That's the way it is implemented in the default VFS module
and that's what vfs_gpfs now does as well for performance reasons.

This makes vfs_gpfs_fstat a null op and I'm therefor removing it.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/modules/vfs_gpfs.c