From: Benjamin Marzinski Date: Fri, 11 Mar 2011 06:49:09 +0000 (-0600) Subject: GFS2: fix block allocation check for fallocate X-Git-Tag: v2.6.39-rc1~488^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4a7b7b0c98efcdcc4c1f6eb10925dec1fbc4016;p=pandora-kernel.git GFS2: fix block allocation check for fallocate GFS2 fallocate wasn't properly checking if a blocks were already allocated. In write_empty_blocks(), if a page didn't have buffer_heads attached, GFS2 was always treating it as if there were no blocks allocated for that page. GFS2 now calls gfs2_block_map() to check if the blocks are allocated before writing them out. Signed-off-by: Benjamin Marzinski Signed-off-by: Steven Whitehouse --- Reading git-diff-tree failed