]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ocfs2: correctly set i_blocks after inline dir gets expanded
authorMark Fasheh <mfasheh@suse.com>
Tue, 5 Aug 2008 18:32:46 +0000 (11:32 -0700)
committerMark Fasheh <mfasheh@suse.com>
Fri, 22 Aug 2008 18:09:02 +0000 (11:09 -0700)
commit9780eb6cfaf7d2d5ccc061eaf94e7aec6a17791e
tree103ce3e47f06adcf3825902d406d06e6a76fd065
parent83cab5338fa8c74f979223698c8d4cc88f2ab68e
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: Tristan Ye <tristan.ye@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dir.c