aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorXue jiufei <[email protected]>2016-03-25 21:21:44 +0000
committerLinus Torvalds <[email protected]>2016-03-25 23:37:42 +0000
commit102c2595aa193f598c0f4b1bf2037d168c80e551 (patch)
tree6b7f875c3fac9198d1888c294e445f95b7445c83 /lib/string_helpers.c
parentocfs2: extend transaction for ocfs2_remove_rightmost_path() and ocfs2_update_... (diff)
downloadkernel-102c2595aa193f598c0f4b1bf2037d168c80e551.tar.gz
kernel-102c2595aa193f598c0f4b1bf2037d168c80e551.zip
ocfs2: extend enough credits for freeing one truncate record while replaying truncate records
Now function ocfs2_replay_truncate_records() first modifies tl_used, then calls ocfs2_extend_trans() to extend transactions for gd and alloc inode used for freeing clusters. jbd2_journal_restart() may be called and it may happen that tl_used in truncate log is decreased but the clusters are not freed, which means these clusters are lost. So we should avoid extending transactions in these two operations. Signed-off-by: joyce.xue <[email protected]> Reviewed-by: Mark Fasheh <[email protected]> Acked-by: Joseph Qi <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions