Details
-
Bug
-
Resolution: Not a Bug
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
The commit 85c6c099d83b19480dd4160de57e7ffac5b312af has a typo in condition.
} else if (pos + size <= (LDISKFS_NDIR_BLOCKS + 1024) * bs) {
/* single indirect */
credits = blocks * 3;
if (inode == NULL ||
>>>>>>> LDISKFS_I(inode)->i_data[LDISKFS_IND_BLOCK] == 0)
credits += 3;
else
/* The indirect block may be modified. */
credits += 1;
}
It causes the issue that insufficient journal credit in some case