diff options
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 3ea9480bd055..058c84cac8dc 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -426,10 +426,11 @@ struct ubi_debug_info { | |||
426 | * @fm_pool: in-memory data structure of the fastmap pool | 426 | * @fm_pool: in-memory data structure of the fastmap pool |
427 | * @fm_wl_pool: in-memory data structure of the fastmap pool used by the WL | 427 | * @fm_wl_pool: in-memory data structure of the fastmap pool used by the WL |
428 | * sub-system | 428 | * sub-system |
429 | * @fm_mutex: serializes ubi_update_fastmap() and protects @fm_buf | 429 | * @fm_protect: serializes ubi_update_fastmap(), protects @fm_buf and makes sure |
430 | * that critical sections cannot be interrupted by ubi_update_fastmap() | ||
430 | * @fm_buf: vmalloc()'d buffer which holds the raw fastmap | 431 | * @fm_buf: vmalloc()'d buffer which holds the raw fastmap |
431 | * @fm_size: fastmap size in bytes | 432 | * @fm_size: fastmap size in bytes |
432 | * @fm_sem: allows ubi_update_fastmap() to block EBA table changes | 433 | * @fm_eba_sem: allows ubi_update_fastmap() to block EBA table changes |
433 | * @fm_work: fastmap work queue | 434 | * @fm_work: fastmap work queue |
434 | * @fm_work_scheduled: non-zero if fastmap work was scheduled | 435 | * @fm_work_scheduled: non-zero if fastmap work was scheduled |
435 | * | 436 | * |
@@ -534,8 +535,8 @@ struct ubi_device { | |||
534 | struct ubi_fastmap_layout *fm; | 535 | struct ubi_fastmap_layout *fm; |
535 | struct ubi_fm_pool fm_pool; | 536 | struct ubi_fm_pool fm_pool; |
536 | struct ubi_fm_pool fm_wl_pool; | 537 | struct ubi_fm_pool fm_wl_pool; |
537 | struct rw_semaphore fm_sem; | 538 | struct rw_semaphore fm_eba_sem; |
538 | struct mutex fm_mutex; | 539 | struct rw_semaphore fm_protect; |
539 | void *fm_buf; | 540 | void *fm_buf; |
540 | size_t fm_size; | 541 | size_t fm_size; |
541 | struct work_struct fm_work; | 542 | struct work_struct fm_work; |