Rename cleaner attribute cache_line_lock to lock_cacheline

.. to make it clean that true means cleaner must lock
cachelines rather than the lock is already being held.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2021-03-05 11:20:46 +01:00
parent c40e36456b
commit 056217d103
7 changed files with 7 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ static struct ocf_request *_ocf_cleaner_alloc_req(struct ocf_cache *cache,
return NULL;
req->info.internal = true;
req->info.cleaner_cache_line_lock = attribs->cache_line_lock;
req->info.cleaner_cache_line_lock = attribs->lock_cacheline;
/* Allocate pages for cleaning IO */
req->data = ctx_data_alloc(cache->owner,

View File

@@ -26,7 +26,7 @@ typedef int (*ocf_cleaner_get_item)(struct ocf_cache *cache,
* @brief Cleaning attributes for clean request
*/
struct ocf_cleaner_attribs {
uint8_t cache_line_lock : 1; /*!< Clean under cache line lock */
uint8_t lock_cacheline : 1; /*!< Cleaner to lock cachelines on its own */
uint8_t do_sort : 1; /*!< Sort cache lines which will be cleaned */