Skip to content
Commit 9780eb6c authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2: correctly set i_blocks after inline dir gets expanded



We were setting i_blocks based on allocation before the extent insert, which
is wrong as the value is a calculation based on ip_clusters which gets
updated as a result of the insert. This patch moves the line in question
to just after the call to ocfs2_insert_extent().

Without this fix, inline directories were temporarily having an i_blocks
value of zero immediately after expansion to extents.

Reported-and-tested-by: default avatarTristan Ye <tristan.ye@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 83cab533
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment