diff options
Diffstat (limited to 'fs/ubifs/misc.h')
-rw-r--r-- | fs/ubifs/misc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/misc.h b/fs/ubifs/misc.h index cd83ffc8101c..87dabf9fe742 100644 --- a/fs/ubifs/misc.h +++ b/fs/ubifs/misc.h | |||
@@ -308,7 +308,7 @@ static inline long long ubifs_reported_space(const struct ubifs_info *c, | |||
308 | { | 308 | { |
309 | int divisor, factor; | 309 | int divisor, factor; |
310 | 310 | ||
311 | divisor = UBIFS_MAX_DATA_NODE_SZ + (c->max_idx_node_sz << 1); | 311 | divisor = UBIFS_MAX_DATA_NODE_SZ + (c->max_idx_node_sz * 3); |
312 | factor = UBIFS_MAX_DATA_NODE_SZ - UBIFS_DATA_NODE_SZ; | 312 | factor = UBIFS_MAX_DATA_NODE_SZ - UBIFS_DATA_NODE_SZ; |
313 | do_div(free, divisor); | 313 | do_div(free, divisor); |
314 | 314 | ||