Optimization suggested by Volker. Don't do a stat system call on normal read path.
commitffe14d99083fe5344fa7678e7ad780d930398427
authorJeremy Allison <jra@samba.org>
Mon, 25 Mar 2013 16:54:50 +0000 (25 09:54 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Mar 2013 16:51:22 +0000 (28 17:51 +0100)
treea2b5f2f51f8636df40724540ced3d37eb9fe300b
parentadbe6cba005a2060b0f641e91b500574f4637a36
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
source3/smbd/reply.c