[btrfs-devel][patch]remove warning when file size is 1

Yan Zheng yanzheng at 21cn.com
Sat Sep 22 22:15:41 PDT 2007


2007/9/18, Chris Mason <chris.mason at oracle.com>:
> On Tue, 18 Sep 2007 15:18:24 +0800
> "Yan Zheng" <yanzheng at 21cn.com> wrote:
>
> > Hello
> >
> > When file size is 1,  both the 'start' and 'end' of a extent_state are
> > set to 0 by set_extent_uptodate.
>
> I saw this one too last night, but ended up fixing it a little
> differently.  I changed btrfs_get_extent to insert things into the
> extent maps at a block granularity.  This is more in line with how the
> rest of the code works.  I'm running fsx-linux on it now (an important
> test for these kinds of changes).
>
Hi

Inline data are not truncated in btrfs_truncate_in_trans,  maybe we
need check inode->i_size here to determine the start of data area that
need fill zero.  Another option is truncate inline data in
btrfs_truncate_in_trans, I can work on this if you agree.

Regards
YZ



More information about the Btrfs-devel mailing list