Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
3
-
9223372036854775807
Description
current logic is not correct
depth = inode != NULL ? ext_depth(inode) : 0;
depth = min(max(depth, 1) + 3, LDISKFS_MAX_EXTENT_DEPTH);
credits = depth;
depth can't grow by 3 in a single transaction.
rather it should be like:
depth = inode != NULL ? ext_depth(inode) : 0;
depth = min(max(depth, 1) + 1, LDISKFS_MAX_EXTENT_DEPTH);
credits = (depth-1) * 2;
Attachments
Issue Links
- is related to
-
LU-18763 LBUG on multiple MDS while adding OSTs - journal_dirty_metadata failed: handle type 0 started at line 1994, credits 5/0, errcode -28
-
- Resolved
-