Thread (4 messages) 4 messages, 3 authors, 2011-07-07

Re: [GIT PULL] ext4 update for 3.0

From: Maxim Patlasov <hidden>
Date: 2011-07-07 08:51:44
Also in: lkml

Hi Ted,
Yongqiang Yang (1):
     ext4: correct comments for ext4_free_blocks()
Any ideas why the patch fixing accounting of i_blocks in
ext4_free_blocks() didn't come to this set of changes?

The problem was that ext4_free_blocks() calls dquot_free_block() that,
in turn, calls inode_sub_bytes() decrementing i_blocks. This works
fine in most cases but the one: ext4_ext_map_blocks() might call
ext4_free_blocks (if ext4_ext_insert_extent failed) when allocated
blocks were only reserved, i.e. not accounted in i_blocks yet.

I recently re-run a simple test reproducing the problem and found out
that Linus' 3.0.0-rc6 is still affected by this problem. Does it make
sense to resend that patch to you?

Thanks,
Maxim
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help