diff options
Diffstat (limited to 'fs/ubifs/lprops.c')
-rw-r--r-- | fs/ubifs/lprops.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c index 3659b887743b..f27176e9b70d 100644 --- a/fs/ubifs/lprops.c +++ b/fs/ubifs/lprops.c | |||
@@ -461,18 +461,6 @@ static void change_category(struct ubifs_info *c, struct ubifs_lprops *lprops) | |||
461 | } | 461 | } |
462 | 462 | ||
463 | /** | 463 | /** |
464 | * ubifs_get_lprops - get reference to LEB properties. | ||
465 | * @c: the UBIFS file-system description object | ||
466 | * | ||
467 | * This function locks lprops. Lprops have to be unlocked by | ||
468 | * 'ubifs_release_lprops()'. | ||
469 | */ | ||
470 | void ubifs_get_lprops(struct ubifs_info *c) | ||
471 | { | ||
472 | mutex_lock(&c->lp_mutex); | ||
473 | } | ||
474 | |||
475 | /** | ||
476 | * calc_dark - calculate LEB dark space size. | 464 | * calc_dark - calculate LEB dark space size. |
477 | * @c: the UBIFS file-system description object | 465 | * @c: the UBIFS file-system description object |
478 | * @spc: amount of free and dirty space in the LEB | 466 | * @spc: amount of free and dirty space in the LEB |
@@ -643,22 +631,6 @@ const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c, | |||
643 | } | 631 | } |
644 | 632 | ||
645 | /** | 633 | /** |
646 | * ubifs_release_lprops - release lprops lock. | ||
647 | * @c: the UBIFS file-system description object | ||
648 | * | ||
649 | * This function has to be called after each 'ubifs_get_lprops()' call to | ||
650 | * unlock lprops. | ||
651 | */ | ||
652 | void ubifs_release_lprops(struct ubifs_info *c) | ||
653 | { | ||
654 | ubifs_assert(mutex_is_locked(&c->lp_mutex)); | ||
655 | ubifs_assert(c->lst.empty_lebs >= 0 && | ||
656 | c->lst.empty_lebs <= c->main_lebs); | ||
657 | |||
658 | mutex_unlock(&c->lp_mutex); | ||
659 | } | ||
660 | |||
661 | /** | ||
662 | * ubifs_get_lp_stats - get lprops statistics. | 634 | * ubifs_get_lp_stats - get lprops statistics. |
663 | * @c: UBIFS file-system description object | 635 | * @c: UBIFS file-system description object |
664 | * @st: return statistics | 636 | * @st: return statistics |