X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fpartmap.h;h=6831973a7df97fd1c186935de09c3d0115dfed79;hb=92b3bd34e6024ec20c67e3c1285f3a442fe6f326;hp=1e5d1d5fbf8f0c2ecddca0230aa6f93789a66778;hpb=e8060fa4647c5c4ccf07efb91a35f65c543dfc4f;p=libucw.git diff --git a/ucw/partmap.h b/ucw/partmap.h index 1e5d1d5f..6831973a 100644 --- a/ucw/partmap.h +++ b/ucw/partmap.h @@ -27,7 +27,7 @@ void partmap_load(struct partmap *p, ucw_off_t start, uns size); static inline void * partmap_map(struct partmap *p, ucw_off_t start, uns size UNUSED) { -#ifndef CONFIG_PARTMAP_IS_MMAP +#ifndef CONFIG_UCW_PARTMAP_IS_MMAP if (unlikely(!p->start_map || start < p->start_off || (ucw_off_t) (start+size) > p->end_off)) partmap_load(p, start, size); #endif @@ -37,7 +37,7 @@ partmap_map(struct partmap *p, ucw_off_t start, uns size UNUSED) static inline void * partmap_map_forward(struct partmap *p, ucw_off_t start, uns size UNUSED) { -#ifndef CONFIG_PARTMAP_IS_MMAP +#ifndef CONFIG_UCW_PARTMAP_IS_MMAP if (unlikely((ucw_off_t) (start+size) > p->end_off)) partmap_load(p, start, size); #endif