Skip to content

Commit 21cfd6c

Browse files
dgchinnergregkh
authored andcommitted
xfs: skip stale inodes in xfs_iflush_cluster
commit 7d3aa7fe970791f1a674b14572a411accf2f4d4e upstream. We don't write back stale inodes so we should skip them in xfs_iflush_cluster, too. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent baa7a74 commit 21cfd6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/xfs/xfs_inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,6 +3222,7 @@ xfs_iflush_cluster(
32223222
*/
32233223
spin_lock(&iq->i_flags_lock);
32243224
if (!iq->i_ino ||
3225+
__xfs_iflags_test(iq, XFS_ISTALE) ||
32253226
(XFS_INO_TO_AGINO(mp, iq->i_ino) & mask) != first_index) {
32263227
spin_unlock(&iq->i_flags_lock);
32273228
continue;

0 commit comments

Comments
 (0)