Files
linux/fs
Josef Bacik b57220cc98 btrfs: remove WARN_ON in log_dir_items
commit 2cc8334270 upstream.

When Filipe added the recursive directory logging stuff in
2f2ff0ee5e ("Btrfs: fix metadata inconsistencies after directory
fsync") he specifically didn't take the directory i_mutex for the
children directories that we need to log because of lockdep.  This is
generally fine, but can lead to this WARN_ON() tripping if we happen to
run delayed deletion's in between our first search and our second search
of dir_item/dir_indexes for this directory.  We expect this to happen,
so the WARN_ON() isn't necessary.  Drop the WARN_ON() and add a comment
so we know why this case can happen.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-03 06:26:21 +02:00
..
2018-11-13 11:08:46 -08:00
2018-12-17 09:24:41 +01:00
2018-08-17 16:20:28 -07:00
2018-08-17 16:20:27 -07:00
2019-02-12 19:47:18 +01:00
2019-03-13 14:02:32 -07:00
2019-03-10 07:17:21 +01:00
2018-07-03 16:44:45 -04:00
2019-03-10 07:17:21 +01:00
2018-06-11 08:22:34 -07:00
2019-03-23 20:09:59 +01:00