Btrfs stable fixes for 4.5.x

David Sterba
2016-05-05T09:40:36Z

Hi,

please queue the following patches to 4.5 stable. There are fixes for user
visible bugs, improved error handling and stability fixes.

There are 3 patches that do not apply directly to 4.5.3 so I'm sending the full
patch set for ease of application.

I have tested the patches on top of 4.5. Some patches may apply to older stable
branches but haven't been tested nor reviewed in that respect.

Thanks.

Subjects:
btrfs: reada: Fix in-segment calculation for reada
Btrfs: fix truncate_space_check
btrfs: remove error message from search ioctl for nonexistent tree
btrfs: change max_inline default to 2048
Btrfs: fix unreplayable log after snapshot delete + parent dir fsync
Btrfs: fix file loss on log replay after renaming a file and fsync
Btrfs: fix extent_same allowing destination offset beyond i_size
Btrfs: fix deadlock between direct IO reads and buffered writes
Btrfs: fix race when checking if we can skip fsync'ing an inode
Btrfs: do not collect ordered extents when logging that inode exists
btrfs: csum_tree_block: return proper errno value
btrfs: do not write corrupted metadata blocks to disk
Btrfs: fix invalid reference in replace_path
btrfs: handle non-fatal errors in btrfs_qgroup_inherit()
btrfs: fallback to vmalloc in btrfs_compare_tree
Btrfs: don't use src fd for printk
btrfs: Reset IO error counters before start of device replacing
Commits:
503785306d182ab624a2232856ef8ab503ee85f9
dc95f7bfc57fa4b75a77d0da84d5db249d74aa3f
11ea474f74709fc764fb7e80306e0776f94ce8b8
f7e98a7fff8634ae655c666dc2c9fc55a48d0a73
1ec9a1ae1e30c733077c0b288c4301b66b7a81f2
2be63d5ce929603d4e7cedabd9e992eb34a0ff95
f4dfe6871006c62abdccc77b2818b11f376e98e2
ade770294df29e08f913e5d733a756893128f45e
affc0ff902d539ebe9bba405d330410314f46e9f
5e33a2bd7ca7fa687fb0965869196eea6815d1f3
8bd98f0e6bf792e8fa7c3fed709321ad42ba8d2e
0f805531daa2ebfb5706422dc2ead1cff9e53e65
264813acb1c756aebc337b16b832604a0c9aadaf
918c2ee103cf9956f1c61d3f848dbb49fd2d104a
8f282f71eaee7ac979cdbe525f76daa0722798a8
c79b4713304f812d3d6c95826fc3e5fc2c0b0c14
7ccefb98ce3e5c4493cd213cd03714b7149cf0cb