projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UBIFS: add more debugging messages for LPT
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
fs
/
ubifs
/
lpt.c
diff --git
a/fs/ubifs/lpt.c
b/fs/ubifs/lpt.c
index 9ff2463177e503f563f6f5cd543c339444d9638e..cd11b23a18754136933fe64945c331177ea2e299 100644
(file)
--- a/
fs/ubifs/lpt.c
+++ b/
fs/ubifs/lpt.c
@@
-109,7
+109,8
@@
static void do_calc_lpt_geom(struct ubifs_info *c)
c->lpt_sz = (long long)c->pnode_cnt * c->pnode_sz;
c->lpt_sz += (long long)c->nnode_cnt * c->nnode_sz;
c->lpt_sz += c->ltab_sz;
- c->lpt_sz += c->lsave_sz;
+ if (c->big_lpt)
+ c->lpt_sz += c->lsave_sz;
/* Add wastage */
sz = c->lpt_sz;