[Devel,RHEL7,COMMIT] ms/xfs: lost hunk from "ms/list_lru: add helpers to isolate items" part 2

Submitted by Konstantin Khorenko on Feb. 2, 2017, 3:40 p.m.

Details

Message ID 201702021540.v12FexJ8019220@finist_cl7.x64_64.work.ct
State New
Series "ms/xfs: rework buffer dispose list tracking B"
Headers show

Commit Message

Konstantin Khorenko Feb. 2, 2017, 3:40 p.m.
The commit is pushed to "branch-rh7-3.10.0-514.6.1.vz7.28.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.6.1.vz7.28.3
------>
commit 441cbec24e0c896e7fb4408e0a5fc85915396c1c
Author: Dmitry Monakhov <dmonakhov@openvz.org>
Date:   Thu Feb 2 19:40:59 2017 +0400

    ms/xfs: lost hunk from "ms/list_lru: add helpers to isolate items" part 2
    
    Add lost hunks from original 2fe9a3f ("ms/list_lru: add helpers to isolate items")
    (original ms commit: 3f97b163207c67a3b35931494ad3db1de66356f0)
    
    https://jira.sw.ru/browse/PSBM-58492
    
    Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
 fs/xfs/xfs_buf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index 8d8c9ce..47a6cb0 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -1585,7 +1585,7 @@  xfs_buftarg_wait_rele(
 	 */
 	atomic_set(&bp->b_lru_ref, 0);
 	bp->b_state |= XFS_BSTATE_DISPOSE;
-	list_move(item, dispose);
+	list_lru_isolate_move(lru, item, dispose);
 	spin_unlock(&bp->b_lock);
 	return LRU_REMOVED;
 }
@@ -1646,7 +1646,7 @@  xfs_buftarg_isolate(
 	}
 
 	bp->b_state |= XFS_BSTATE_DISPOSE;
-	list_move(item, dispose);
+	list_lru_isolate_move(lru, item, dispose);
 	spin_unlock(&bp->b_lock);
 	return LRU_REMOVED;
 }