[PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-03-06 Thread Vratislav Bendel
elevated. Fix that circuitous route by leaving them on the LRU as originally intended. Signed-off-by: Vratislav Bendel Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong --- fs/xfs/xfs_buf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c

[PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-02-28 Thread Vratislav Bendel
owever, as per documentation, atomic_add_unless() returns _zero_ if the atomic value was originally equal to the specified *unsless* value. Ultimately causing a xfs_buffer with ->b_lru_ref == 0, to take another trip around LRU, while isolating buffers with non-zero b_lru_ref. Signed-off-by: Vratislav

Re: [PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-03-05 Thread Vratislav Bendel
o b_lru_ref. Additionally those isolated buffers end up right back on the LRU once they are released, because ->b_lru_ref remains elevated. Fix that circuitous route by leaving them on the LRU as originally intended. >> Signed-off-by: Vratislav Bendel > Reviewed-by: Brian Foster > ---