smbd: get a valid file stat to disk_quotas
commitf776b51dde0f4ab6ae7b7865fd1146aabfa17b95
authorUri Simchoni <uri@samba.org>
Wed, 13 Jan 2016 22:09:36 +0000 (14 00:09 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:27 +0000 (13 12:27 +0200)
tree2e63cc974e89d79d262e48a31dca4561833bab46
parent1a07eec97bd546310773a0d32e7125aa9aa45626
smbd: get a valid file stat to disk_quotas

Most calls to disk_quotas originate at a state with an
open file descriptor. Pass the file's stat info down to
disk_quota, so that we can avoid extra stat's and the related
error handling.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12145

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit bd2ec88dca692c239397891bd35c9fa6b8e7b51a)
source3/modules/vfs_ceph.c
source3/modules/vfs_default.c
source3/smbd/dfree.c
source3/smbd/proto.h
source3/smbd/quotas.c
source3/smbd/reply.c
source3/smbd/trans2.c
source3/smbd/vfs.c