commit | fe3f566cd19bb6d787c92b2e202c85f929abf3ac | [log] [tgz] |
---|---|---|
author | Li Zefan <lizf@cn.fujitsu.com> | Mon Mar 28 08:30:38 2011 +0000 |
committer | Chris Mason <chris.mason@oracle.com> | Tue Apr 05 01:19:42 2011 -0400 |
tree | 216c33bb0ed94e7791141939ea763620576d82b0 | |
parent | 200da64e0b039f873f0f20481e6a7d056e7cc6c9 [diff] |
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 <daniel.blueman@gmail.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>