]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ext4/extents.c
ext4: add i_data_sem sanity check
authorDmitry Monakhov <dmonakhov@openvz.org>
Mon, 28 Jul 2014 02:28:15 +0000 (22:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Jul 2014 02:28:15 +0000 (22:28 -0400)
commit4b1f1660710c2ddcefc08c289e66a32b6bc2a2e3
tree915f9288771445a975f5253c6f95fa60d5f11b72
parentb27b1535acc0e97b7435bccf205b3fe9c782afac
ext4: add i_data_sem sanity check

Each caller of ext4_ext_dirty must hold i_data_sem,
The only exception is migration code, let's make it convenient.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/extents.c
fs/ext4/migrate.c