From: Christoph Hellwig Date: Sat, 23 Oct 2010 17:07:20 +0000 (+0200) Subject: fs: fix buffer invalidation in invalidate_list X-Git-Tag: v2.6.37-rc1~94^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99a38919241fd051b8d93b2e4d0c05ef0556d795;p=pandora-kernel.git fs: fix buffer invalidation in invalidate_list We must not call invalidate_inode_buffers in invalidate_list unless the inode can be reclaimed. If we remove the buffer association of a busy inode fsync won't find the buffers anymore. As invalidate_inode_buffers is called from various others sources than umount this actually does matter in practice. While at it change the loop to a more natural form and remove the WARN_ON for I_NEW, wich we already tested a few lines above. Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed