This notation is ambiguous, because it is not clear whether you differentiate ##f## w.r.t. the first or second variable. So I would write
$$
\frac{d}{dz} f(x, 2z - x) = 2 D_2f(x, 2z - x)
$$
instead. (There are other notations, but choose one that is clear.)