From: Mingming Date: Tue, 10 Nov 2009 15:48:04 +0000 (-0500) Subject: ext4: skip conversion of uninit extents after direct IO if there isn't any X-Git-Tag: v2.6.32-rc7~49^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f5249507e4b5c4fc0f9c93f33d133d8c95f47e1;p=pandora-kernel.git ext4: skip conversion of uninit extents after direct IO if there isn't any At the end of direct I/O operation, ext4_ext_direct_IO() always called ext4_convert_unwritten_extents(), regardless of whether there were any unwritten extents involved in the I/O or not. This commit adds a state flag so that ext4_ext_direct_IO() only calls ext4_convert_unwritten_extents() when necessary. Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed