From: Christoph Hellwig Date: Fri, 10 Dec 2010 08:42:24 +0000 (+0000) Subject: xfs: refactor xfs_vm_writepage X-Git-Tag: v2.6.38-rc1~44^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeea1b1f81800e362a3aca86d769d02e137a8fa7;p=pandora-kernel.git xfs: refactor xfs_vm_writepage After the last patches the code for overwrites is the same as for delayed and unwritten extents except that it doesn't need to call xfs_map_at_offset. Take care of that fact to simplify xfs_vm_writepage. The buffer loop now first checks the type of buffer and checks/sets the ioend type, or continues to the next buffer if it's not interesting to us. Only after that we validate the iomap and perform the block mapping if needed, all in common code for the cases where we have to do work. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Alex Elder --- Reading git-diff-tree failed