summaryrefslogtreecommitdiff
path: root/libbcachefs/lru.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-05-19 15:59:37 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-05-19 16:01:51 -0400
commit8cc7d4928198f843fa6d790a615405140fc992d3 (patch)
treed2e7de8e9e120e2228017817f5476f8e9e73c74f /libbcachefs/lru.c
parent0766bee8fdf3973953fd3184f63dfe2a0760c08d (diff)
cmd_unlock: Add -k argument to specify keyring
This adds a new argument (-k) to cmd_unlock for specifying the keyring to add to. The default is user, but user_session and session can also be specified. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'libbcachefs/lru.c')
-rw-r--r--libbcachefs/lru.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/lru.c b/libbcachefs/lru.c
index ce23b383..d2783317 100644
--- a/libbcachefs/lru.c
+++ b/libbcachefs/lru.c
@@ -130,7 +130,7 @@ int bch2_lru_change(struct btree_trans *trans, u64 id, u64 idx,
}
static int bch2_check_lru_key(struct btree_trans *trans,
- struct btree_iter *lru_iter, bool initial)
+ struct btree_iter *lru_iter)
{
struct bch_fs *c = trans->c;
struct btree_iter iter;
@@ -193,7 +193,7 @@ fsck_err:
return ret;
}
-int bch2_check_lrus(struct bch_fs *c, bool initial)
+int bch2_check_lrus(struct bch_fs *c)
{
struct btree_trans trans;
struct btree_iter iter;
@@ -207,7 +207,7 @@ int bch2_check_lrus(struct bch_fs *c, bool initial)
ret = __bch2_trans_do(&trans, NULL, NULL,
BTREE_INSERT_NOFAIL|
BTREE_INSERT_LAZY_RW,
- bch2_check_lru_key(&trans, &iter, initial));
+ bch2_check_lru_key(&trans, &iter));
if (ret)
break;
}