ext4: fix inline data error paths
authorTheodore Ts'o <tytso@mit.edu>
Sun, 5 Feb 2017 04:04:00 +0000 (23:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:46 +0000 (06:41 +0100)
commit0b37d0c0c6b35317bfc3aee8cdf94f853d594e5f
tree5624710ad17e61535ed48e2fffa85eb4e007a72c
parent68ca0fdac41fa801e1e6c2f99e27a9c24e494532
ext4: fix inline data error paths

commit eb5efbcb762aee4b454b04f7115f73ccbcf8f0ef upstream.

The write_end() function must always unlock the page and drop its ref
count, even on an error.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inline.c
fs/ext4/inode.c