journal.c (4e1ebae3ee4e0ce384c33832f66e417a965b64bc) | journal.c (6f9414e0f6f35c7669dad5ac1a838ce323302f03) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * bcache journalling code, for btree insertions 4 * 5 * Copyright 2012 Google, Inc. 6 */ 7 8#include "bcache.h" --- 901 unchanged lines hidden (view full) --- 910{ 911 struct journal_write *w; 912 atomic_t *ret; 913 914 /* No journaling if CACHE_SET_IO_DISABLE set already */ 915 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) 916 return NULL; 917 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * bcache journalling code, for btree insertions 4 * 5 * Copyright 2012 Google, Inc. 6 */ 7 8#include "bcache.h" --- 901 unchanged lines hidden (view full) --- 910{ 911 struct journal_write *w; 912 atomic_t *ret; 913 914 /* No journaling if CACHE_SET_IO_DISABLE set already */ 915 if (unlikely(test_bit(CACHE_SET_IO_DISABLE, &c->flags))) 916 return NULL; 917 |
918 if (!CACHE_SYNC(&c->sb)) | 918 if (!CACHE_SYNC(&c->cache->sb)) |
919 return NULL; 920 921 w = journal_wait_for_write(c, bch_keylist_nkeys(keys)); 922 923 memcpy(bset_bkey_last(w->data), keys->keys, bch_keylist_bytes(keys)); 924 w->data->keys += bch_keylist_nkeys(keys); 925 926 ret = &fifo_back(&c->journal.pin); --- 57 unchanged lines hidden --- | 919 return NULL; 920 921 w = journal_wait_for_write(c, bch_keylist_nkeys(keys)); 922 923 memcpy(bset_bkey_last(w->data), keys->keys, bch_keylist_bytes(keys)); 924 w->data->keys += bch_keylist_nkeys(keys); 925 926 ret = &fifo_back(&c->journal.pin); --- 57 unchanged lines hidden --- |