• C
    fs: fix buffer invalidation in invalidate_list · 99a38919
    Christoph Hellwig 提交于
    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: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    99a38919
inode.c 43.2 KB