From: Steve French Date: Sat, 8 Feb 2014 02:45:12 +0000 (-0600) Subject: [CIFS] clean up page array when uncached write send fails X-Git-Tag: v3.14-rc3~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a5c80d7b5615be8098f9d5da97d166afc318abc;p=pandora-kernel.git [CIFS] clean up page array when uncached write send fails In the event that a send fails in an uncached write, or we end up needing to reissue it (-EAGAIN case), we'll kfree the wdata but the pages currently leak. Fix this by adding a new kref release routine for uncached writedata that releases the pages, and have the uncached codepaths use that. [original patch by Jeff modified to fix minor formatting problems] Signed-off-by: Jeff Layton Reviewed-by: Pavel Shilovsky Signed-off-by: Steve French --- Reading git-diff-tree failed