From: Aneesh Kumar K.V Date: Tue, 29 Apr 2008 12:11:12 +0000 (-0400) Subject: ext4: make ext4_ext_get_blocks always return <= max_blocks X-Git-Tag: v2.6.26-rc1~345^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e067ba0078cd6f00eb6c4052fec630b78ebe59de;p=pandora-kernel.git ext4: make ext4_ext_get_blocks always return <= max_blocks ext4_ext_get_blocks() returns number of blocks allocated with buffer heads unmapped for a read from prealloc space. This is needed so that delayed allocation doesn't do block reservation for prealloc space since the blocks are already resevred on disk. Fix ext4_ext_get_blocks to not return greater than max_blocks, since some of the code paths cannot handle such a return value. Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed