diff options
author | Christoph Hellwig <hch@lst.de> | 2010-10-23 19:07:20 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-25 21:26:14 -0400 |
commit | 99a38919241fd051b8d93b2e4d0c05ef0556d795 (patch) | |
tree | 6d42602c4663645412e3c11dc31211a28b285594 /crypto/cast6.c | |
parent | 4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea (diff) |
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 <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'crypto/cast6.c')
0 files changed, 0 insertions, 0 deletions