Re: The value displayed by 'ls -s' command is strange.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Mason
Date: Tuesday, December 7, 2010 - 11:44 am

Excerpts from Tsutomu Itoh's message of 2010-12-07 02:59:52 -0500:

Well, there's a window during the processing of delayed allocation where
we don't have the bytes recorded as delalloc and we don't have the bytes
recorded in the inode yet.  That's why they are showing up as zero.

We don't call inode_add_bytes() until after we insert the extent, but we
drop the delalloc byte count on the file before the IO is done.

Fixing it will be a little tricky because all the extent accounting
assumes the inode_add_bytes happens at extent insertion time.

-chris

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
The value displayed by 'ls -s' command is strange., Tsutomu Itoh, (Tue Dec 7, 12:59 am)
Re: The value displayed by 'ls -s' command is strange., Chris Mason, (Tue Dec 7, 11:44 am)
Re: The value displayed by 'ls -s' command is strange., Chris Mason, (Tue Dec 7, 12:29 pm)
Re: The value displayed by 'ls -s' command is strange., Tsutomu Itoh, (Tue Dec 7, 4:53 pm)
Re: The value displayed by 'ls -s' command is strange., Tsutomu Itoh, (Tue Dec 7, 5:15 pm)