Filipe Manana
f9d16a4284
btrfs: deal with errors when checking if a dir entry exists during log replay
...
[ Upstream commit 77a5b9e3d14cbce49ceed2766b2003c034c066dc ]
Currently inode_in_dir() ignores errors returned from
btrfs_lookup_dir_index_item() and from btrfs_lookup_dir_item(), treating
any errors as if the directory entry does not exists in the fs/subvolume
tree, which is obviously not correct, as we can get errors such as -EIO
when reading extent buffers while searching the fs/subvolume's tree.
Fix that by making inode_in_dir() return the errors and making its only
caller, add_inode_ref(), deal with returned errors as well.
Signed-off-by: Filipe Manana <fdmanana@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2021-10-27 09:56:54 +02:00
..
2020-11-13 22:15:59 +01:00
2019-04-29 19:02:44 +02:00
2020-03-23 17:01:51 +01:00
2020-03-23 17:01:51 +01:00
2021-03-04 11:38:29 +01:00
2021-03-04 11:38:29 +01:00
2021-03-09 11:11:11 +01:00
2021-03-09 11:11:11 +01:00
2020-11-05 13:02:05 +01:00
2020-03-23 17:01:55 +01:00
2021-09-03 10:09:28 +02:00
2020-07-27 12:55:21 +02:00
2020-03-23 17:01:39 +01:00
2021-08-04 12:46:39 +02:00
2020-10-07 12:06:55 +02:00
2021-05-11 14:47:33 +02:00
2021-03-09 11:11:11 +01:00
2020-10-07 12:06:52 +02:00
2020-07-27 12:55:36 +02:00
2021-07-14 16:55:55 +02:00
2020-03-23 17:01:53 +01:00
2021-03-04 11:38:30 +01:00
2021-03-04 11:38:30 +01:00
2021-01-17 14:16:54 +01:00
2019-11-18 12:46:52 +01:00
2019-04-29 19:02:50 +02:00
2021-01-19 18:27:24 +01:00
2020-04-20 17:43:42 +02:00
2021-09-22 12:27:54 +02:00
2020-10-26 15:04:57 +01:00
2020-05-25 11:25:37 +02:00
2020-03-23 17:01:42 +01:00
2021-06-03 09:00:43 +02:00
2020-10-07 12:13:25 +02:00
2020-02-12 17:16:46 +01:00
2019-11-18 23:43:44 +01:00
2020-10-07 12:13:25 +02:00
2021-10-20 11:44:59 +02:00
2021-10-09 14:40:56 +02:00
2021-10-20 11:44:59 +02:00
2021-03-09 11:11:11 +01:00
2020-07-27 12:55:21 +02:00
2021-02-03 23:28:40 +01:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-07-27 12:55:36 +02:00
2018-04-12 16:29:46 +02:00
2021-09-18 13:40:06 +02:00
2021-05-11 14:47:15 +02:00
2021-07-14 16:55:56 +02:00
2020-10-07 12:12:16 +02:00
2020-10-07 12:12:17 +02:00
2019-11-18 12:46:59 +01:00
2020-03-23 17:01:54 +01:00
2020-05-25 11:25:19 +02:00
2020-10-07 12:13:22 +02:00
2020-10-07 12:13:22 +02:00
2018-04-12 16:29:51 +02:00
2021-01-27 11:55:06 +01:00
2021-01-27 11:55:06 +01:00
2020-05-25 11:25:37 +02:00
2019-04-29 19:02:54 +02:00
2021-03-30 14:31:53 +02:00
2021-03-11 14:17:22 +01:00
2021-09-30 10:11:04 +02:00
2019-07-01 13:34:58 +02:00
2020-03-23 17:01:53 +01:00
2020-10-26 15:03:59 +01:00
2020-11-05 13:03:39 +01:00
2019-04-29 19:02:49 +02:00
2021-06-10 13:39:28 +02:00
2020-03-23 17:01:54 +01:00
2021-05-11 14:47:22 +02:00
2020-10-07 12:12:13 +02:00
2021-03-09 11:11:11 +01:00
2021-07-14 16:55:40 +02:00
2020-10-07 12:13:17 +02:00
2021-09-30 10:11:00 +02:00
2021-03-04 11:38:30 +01:00
2020-10-07 12:13:23 +02:00
2021-01-19 18:27:24 +01:00
2021-07-14 16:55:55 +02:00
2020-10-07 12:12:21 +02:00
2021-07-14 16:55:40 +02:00
2021-09-03 10:09:28 +02:00
2021-06-10 13:39:12 +02:00
2019-04-29 19:02:39 +02:00
2020-07-27 12:55:28 +02:00
2021-10-27 09:56:54 +02:00
2020-10-07 12:06:56 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2020-05-25 11:25:36 +02:00
2021-10-09 14:40:56 +02:00
2021-02-03 23:28:40 +01:00
2021-03-09 11:11:12 +01:00
2019-04-29 19:02:44 +02:00
2020-01-31 10:30:40 -08:00
2019-11-18 12:46:59 +01:00