From: Tao Ma Date: Mon, 31 Oct 2011 21:30:44 +0000 (-0400) Subject: ext4: Create helper function for EXT4_IO_END_UNWRITTEN and i_aiodio_unwritten X-Git-Tag: v3.2-rc1~85^2~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0edeb71dc9133bfb505d3bf59642e07cd936613e;p=pandora-kernel.git ext4: Create helper function for EXT4_IO_END_UNWRITTEN and i_aiodio_unwritten EXT4_IO_END_UNWRITTEN flag set and the increase of i_aiodio_unwritten should be done simultaneously since ext4_end_io_nolock always clear the flag and decrease the counter in the same time. We have found some bugs that the flag is set while leaving i_aiodio_unwritten unchanged(commit 32c80b32c053d). So this patch just tries to create a helper function to wrap them to avoid any future bug. The idea is inspired by Eric. Cc: Eric Sandeen Signed-off-by: Tao Ma Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed