From: Theodore Ts'o Date: Thu, 14 May 2009 17:57:08 +0000 (-0400) Subject: ext4: Clean up ext4_get_blocks() so it does not depend on bh_result->b_state X-Git-Tag: v2.6.31-rc1~396^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac3b6e00acb46406c993d57921f86a594aafe08;p=pandora-kernel.git ext4: Clean up ext4_get_blocks() so it does not depend on bh_result->b_state The ext4_get_blocks() function was depending on the value of bh_result->b_state as an input parameter to decide whether or not update the delalloc accounting statistics by calling ext4_da_update_reserve_space(). We now use a separate flag, EXT4_GET_BLOCKS_UPDATE_RESERVE_SPACE, to requests this update, so that all callers of ext4_get_blocks() can clear map_bh.b_state before calling ext4_get_blocks() without worrying about any consistency issues. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed