Optimization suggested by Volker. Don't do a stat system call on normal read path.
commite5da98b956435c47669eba10a77887e9832fd9da
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:48:39 +0000 (7 21:48 +0200)
tree7801fb1864465ee827c5bb5faa9fbaf4ced84ecb
parenta46a40cfefa1c45ae8c9cd2bd6bdbc80bc0bcab2
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