From: Jan Kara Date: Fri, 8 Jan 2010 15:46:29 +0000 (+0100) Subject: udf: Fix unalloc space handling in udf_update_inode X-Git-Tag: v2.6.34-rc2~62^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae917cd188f397e9223001d9f6c0adfb339fd64;p=pandora-kernel.git udf: Fix unalloc space handling in udf_update_inode Writing of inode holding unallocated space info was broken because we first cleared the buffer and after that checked whether it contains a tag meaning the block holds unallocated space information. Fix the problem by checking appropriate in memory flag instead. Also cleanup the function a bit along the way - most importantly lock buffer when modifying its contents, check for buffer_write_io_error instead of !buffer_uptodate, etc.. Signed-off-by: Jan Kara --- Reading git-diff-tree failed