From: Theodore Ts'o Date: Mon, 1 Sep 2014 18:38:09 +0000 (-0400) Subject: ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent() X-Git-Tag: fixes-against-v3.18-rc2~28^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523f431ccfffd3022e80e13befb9594f54b5607e;p=pandora-kernel.git ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent() In nearly all of the calls to ext4_ext_find_extent() where the caller is trying to recycle the path object, ext4_ext_drop_refs() gets called to release the buffer heads before the path object gets overwritten. To simplify things for the callers, and to avoid the possibility of a memory leak, make ext4_ext_find_extent() responsible for dropping the buffers. Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed