From: Chris Mason Date: Sat, 4 Jan 2014 05:07:00 +0000 (-0800) Subject: Btrfs: don't use ram_bytes for uncompressed inline items X-Git-Tag: v3.2.74~38 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c36cd4ff9c60b6d3b425b44ccf72c0d2ff0157;p=pandora-kernel.git Btrfs: don't use ram_bytes for uncompressed inline items commit 514ac8ad8793a097c0c9d89202c642479d6dfa34 upstream. 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: Jens Axboe Signed-off-by: Chris Mason [bwh: Backported to 3.2: - Don't use btrfs_map_token API - There are fewer callers of btrfs_file_extent_inline_len() to change - Adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed