cifs: use a flexarray in cifs_writedata
authorJeff Layton <jlayton@redhat.com>
Fri, 7 Feb 2014 16:04:04 +0000 (11:04 -0500)
committerSteve French <smfrench@gmail.com>
Sat, 8 Feb 2014 02:38:29 +0000 (20:38 -0600)
commit26c8f0d601f5d4c0d9f4bc8c5151539aae5dc26a
tree54636097b13ebeee398f6b4fe4d98835065ba3b0
parent83e3bc23ef9ce7c03b7b4e5d3d790246ea59db3e
cifs: use a flexarray in cifs_writedata

The cifs_writedata code uses a single element trailing array, which
just adds unneeded complexity. Use a flexarray instead.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c