Optimization suggested by Volker. Don't do a stat system call on normal read path.
authorJeremy Allison <jra@samba.org>
Mon, 25 Mar 2013 16:54:50 +0000 (09:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 26 Apr 2013 07:25:03 +0000 (09:25 +0200)
commitc926f18f0c456563fbd8eb158a78c8c88e8e5d19
treec480d6f1101e25f3b1fd3a3d116d39f5058b9658
parent721c22ed2a536051207876b220af49b787a7c06c
Optimization suggested by Volker. Don't do a stat system call on normal read path.

Only do it if we need it in the sendfile() path.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Mar 28 17:51:22 CET 2013 on sn-devel-104

Fix bug #9748 - Remove unneeded fstat system call from hot read path.
(cherry picked from commit 60a2fb5ddac02376d82f323f2acb1211bb7929e3)
source3/smbd/reply.c