From: Li Zefan Date: Mon, 28 Mar 2011 08:30:38 +0000 (+0000) Subject: Btrfs: Fix oops for defrag with compression turned on X-Git-Tag: v2.6.39-rc2~6^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe3f566cd19bb6d787c92b2e202c85f929abf3ac;p=pandora-kernel.git Btrfs: Fix oops for defrag with compression turned on When we defrag a file, whose size can be fit into an inline extent, with compression enabled, the compress type is set to be fs_info->compress_type, which is 0 if the btrfs filesystem is mounted without compress option. This leads to oops. Reported-by: Daniel Blueman Signed-off-by: Li Zefan Signed-off-by: Chris Mason --- Reading git-diff-tree failed