Optimization suggested by Volker. Don't do a stat system call on normal read path.
commit60a2fb5ddac02376d82f323f2acb1211bb7929e3
authorJeremy Allison <jra@samba.org>
Mon, 25 Mar 2013 16:54:50 +0000 (25 09:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 7 Apr 2013 19:49:13 +0000 (7 21:49 +0200)
tree71ce46f22c3c759f06382f31908dad48b4f1e01d
parent565d1409c7c424fbbeed1e98b042d3970b0acf73
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.
source3/smbd/reply.c