1 May 2009 15:32
Re: [PATCH] fiemap: fix problem with setting FIEMAP_EXTENT_LAST
Josef Bacik <josef <at> redhat.com>
2009-05-01 13:32:26 GMT
2009-05-01 13:32:26 GMT
On Thu, Apr 30, 2009 at 03:40:47PM -0700, Andrew Morton wrote: > On Thu, 30 Apr 2009 13:44:51 -0400 > Josef Bacik <jbacik <at> redhat.com> wrote: > > > This patch fixes a problem where the generic block based fiemap stuff would not > > properly set FIEMAP_EXTENT_LAST on the last extent. I've reworked things to > > keep track if we go past the EOF, and mark the last extent properly. The > > problem was reported by and tested by Eric Sandeen. > > > > bleeearrggh. __generic_block_fiemap() needs to be dragged out, shot, > stabbed and doused in gasoline. > > - uses stupid helper macros (blk_to_logical, logical_to_blk), thus > carefully obscuring the types of their incoming args and return value. > I did this to make it a bit more cleaner, so I didn't have a bunch of (blk << (inode)->i_blkbits) type statements everywhere. Do you have a better suggestion? Would you like an inline function, or do you want me to pepper the function with this stuff? > - has kerneldoc which documents non-existent arguments and fails to > document the actual arguments. > Yes thats my fault, sorry. Things got changed between my original submissions and I never fixed that, I will take care of that now.(Continue reading)
RSS Feed