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
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
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
> ---
3 matches
Mail list logo