]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Don't flush stale inodes
authorDave Chinner <david@fromorbit.com>
Sat, 2 Jan 2010 02:39:40 +0000 (02:39 +0000)
committerAlex Elder <aelder@sgi.com>
Sun, 10 Jan 2010 18:22:00 +0000 (12:22 -0600)
commitb48254ae3d4f0105ca4474253012a8021c35d717
treef0938a953d0bce87cade91ec753293c305925296
parentbe6a1a7ae9dd327cdd1ac64fbf96fe5ce80c3317
xfs: Don't flush stale inodes

Because inodes remain in cache much longer than inode buffers do
under memory pressure, we can get the situation where we have
stale, dirty inodes being reclaimed but the backing storage has
been freed.  Hence we should never, ever flush XFS_ISTALE inodes
to disk as there is no guarantee that the backing buffer is in
cache and still marked stale when the flush occurs.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_inode.c