smbd: get a valid file stat to disk_quotas
authorUri Simchoni <uri@samba.org>
Wed, 13 Jan 2016 22:09:36 +0000 (00:09 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 12 Aug 2016 23:53:15 +0000 (01:53 +0200)
commitbd2ec88dca692c239397891bd35c9fa6b8e7b51a
tree5c05a80a008f3f59169c122a33c6b7c63a22e7e9
parent3e6ea02d4258a782482eee9f9124c6a39b74a965
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>
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