Skip to content
Commit 514ac8ad authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: don't use ram_bytes for uncompressed inline items



If we truncate an uncompressed inline item, ram_bytes isn't updated to reflect
the new size.  The fixe uses the size directly from the item header when
reading uncompressed inlines, and also fixes truncate to update the
size as it goes.

Reported-by: default avatarJens Axboe <axboe@fb.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
CC: stable@vger.kernel.org
parent 23c6bf6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment