cfs_time_current_64||ktime_get
cfs_time_current_sec||ktime_get_real_seconds
CLASSERT||BUILD_BUG_ON()
-cp_chunk_log_bits||consider cp_compr_chunk_bits helper?
+cp_chunk_log_bits||cp_compr_chunk_log_bits
msecs_to_jiffies||cfs_time_seconds
DEFINE_TIMER||CFS_DEFINE_TIMER
define OBD_CONNECT||see "XXX README XXX" below and contact adilger@whamcloud.com
/* which slab kmem index this memory allocated from */
short int cp_kmem_index; /* 48 bits */
/** Compression type **/
- enum ll_compr_type cp_comp_type:8;
+ enum ll_compr_type cp_compr_type:8;
/** Compression level **/
- u8 cp_comp_level:4;
+ u8 cp_compr_level:4;
/** Chunk Size **/
- u8 cp_chunk_log_bits:4; /* 64 bits */
+ u8 cp_compr_chunk_log_bits:4; /* 64 bits */
/**
* Owning IO in cl_page_state::CPS_OWNED state. Sub-page can be owned
* by sub-io. Protected by a VM lock.
struct cl_sync_io *cp_sync_io;
};
#define cl_page_compr_bits(clpage) \
- (clpage->cp_chunk_log_bits + COMPR_CHUNK_MIN_BITS)
+ (clpage->cp_compr_chunk_log_bits + COMPR_CHUNK_MIN_BITS)
/**
* Per-layer part of cl_page.
struct lov_stripe_md_entry *lsme)
{
if (lsme->lsme_pattern & LOV_PATTERN_COMPRESS) {
- page->cp_comp_type = lsme->lsme_compr_type;
- page->cp_comp_level = lsme->lsme_compr_lvl;
- page->cp_chunk_log_bits = lsme->lsme_compr_chunk_log_bits;
+ page->cp_compr_type = lsme->lsme_compr_type;
+ page->cp_compr_level = lsme->lsme_compr_lvl;
+ page->cp_compr_chunk_log_bits = lsme->lsme_compr_chunk_log_bits;
}
}
ENTRY;
clpage = oap2cl_page(brw_page2oap(pga[0]));
- lvl = clpage->cp_comp_level;
- type = clpage->cp_comp_type;
+ lvl = clpage->cp_compr_level;
+ type = clpage->cp_compr_type;
chunk_bits = cl_page_compr_bits(clpage);
chunk_size = (1 << chunk_bits);
ENTRY;
clpage = oap2cl_page(brw_page2oap(pga[0]));
- type = clpage->cp_comp_type;
+ type = clpage->cp_compr_type;
/* no compression */
if (type == LL_COMPR_TYPE_NONE)
RETURN(0);
/* If compression disabled for the file NONE is set for all
* pages, so it is enough to check only one
*/
- compressed = clpage->cp_comp_type != LL_COMPR_TYPE_NONE;
+ compressed = clpage->cp_compr_type != LL_COMPR_TYPE_NONE;
if (resend)
compressed = false;
* which is supposed to be used in this file chunk, try
* FAST compression type.
*/
- if ((COMPRESS_TYPE_TO_BIT(clpage->cp_comp_type) &
+ if ((COMPRESS_TYPE_TO_BIT(clpage->cp_compr_type) &
ocd->ocd_compress_types) == 0) {
for (i = 0; i < page_count; i++) {
clpage = oap2cl_page(brw_page2oap(pga[i]));
- clpage->cp_comp_type = LL_COMPR_TYPE_FAST;
+ clpage->cp_compr_type = LL_COMPR_TYPE_FAST;
}
}