David Sterba
1686570265
btrfs: handle directory and dentry mismatch in btrfs_may_delete()
...
The helper btrfs_may_delete() is a copy of generic fs/namei.c:may_delete()
to verify various conditions before deletion. There's a BUG_ON added
before linux.git started, we can turn it to a proper error handling
at least in our local helper. A mistmatch between directory and the
deleted dentry is clearly invalid.
This won't be probably ever hit due to the way how the parameters are
set from the caller btrfs_ioctl_snap_destroy(), using a VFS helper
lookup_one().
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2024-03-04 16:24:47 +01:00
..
2024-03-04 16:24:45 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 23:01:04 +01:00
2024-03-04 16:24:46 +01:00
2023-01-19 09:24:27 +01:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:10 +02:00
2023-10-30 10:42:06 -10:00
2023-10-30 10:42:06 -10:00
2024-03-04 16:24:46 +01:00
2023-12-15 23:03:58 +01:00
2024-03-04 16:24:46 +01:00
2024-02-09 20:29:14 +01:00
2024-03-04 16:24:46 +01:00
2024-02-22 12:15:12 +01:00
2024-03-04 16:24:45 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:45 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:13 +02:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:44 +01:00
2023-12-15 23:01:03 +01:00
2023-10-12 16:44:12 +02:00
2023-11-09 14:01:59 +01:00
2023-10-12 16:44:16 +02:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:47 +01:00
2023-10-12 16:44:07 +02:00
2023-10-12 16:44:02 +02:00
2023-06-19 13:59:25 +02:00
2023-06-19 13:59:25 +02:00
2024-03-04 16:24:46 +01:00
2024-02-29 22:34:11 +01:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:41 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:45 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 22:59:02 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 20:27:02 +01:00
2024-03-04 16:24:46 +01:00
2023-11-03 16:39:06 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:47 +01:00
2022-12-05 18:00:56 +01:00
2024-03-04 16:24:46 +01:00
2023-06-19 13:59:24 +02:00
2023-10-12 16:44:07 +02:00
2023-05-10 14:51:27 +02:00
2023-02-13 17:50:35 +01:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:02 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:47 +01:00
2023-01-19 09:24:27 +01:00
2023-10-12 16:44:05 +02:00
2024-03-04 16:24:46 +01:00
2023-09-08 14:10:49 +02:00
2023-12-15 23:00:04 +01:00
2023-04-17 18:01:18 +02:00
2024-01-18 23:35:30 +01:00
2023-10-12 16:44:09 +02:00
2024-03-04 16:24:46 +01:00
2023-12-15 20:27:02 +01:00
2023-08-24 16:20:18 -07:00
2024-03-04 16:24:46 +01:00
2023-12-15 20:27:01 +01:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:47 +01:00
2023-10-12 16:44:11 +02:00
2023-06-19 13:59:22 +02:00
2023-10-12 16:44:02 +02:00
2022-12-05 18:00:40 +01:00
2024-01-31 08:42:47 +01:00
2023-12-06 22:32:57 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 20:27:02 +01:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:09 +02:00
2022-12-05 18:00:59 +01:00
2024-01-12 01:59:49 +01:00
2019-04-29 19:02:49 +02:00
2024-03-04 16:24:46 +01:00
2020-03-23 17:01:54 +01:00
2023-12-15 23:03:58 +01:00
2023-10-12 16:44:13 +02:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:04 +02:00
2024-01-18 23:43:08 +01:00
2023-04-17 18:01:24 +02:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:41 +01:00
2024-03-04 16:24:46 +01:00
2023-10-12 16:44:05 +02:00
2024-01-22 13:29:42 -08:00
2023-12-15 23:03:58 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 20:27:04 +01:00
2024-03-04 16:24:47 +01:00
2023-02-13 17:50:35 +01:00
2024-03-04 16:24:46 +01:00
2023-12-06 22:32:49 +01:00
2024-03-04 16:24:46 +01:00
2023-12-15 23:00:04 +01:00
2024-03-04 16:24:47 +01:00
2024-03-04 16:24:47 +01:00
2023-06-19 13:59:38 +02:00
2022-12-05 18:00:48 +01:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:50 +01:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:46 +01:00
2024-03-04 16:24:46 +01:00
2022-12-05 18:00:47 +01:00
2024-03-04 16:24:47 +01:00
2023-12-15 23:00:04 +01:00
2023-12-15 20:27:05 +01:00
2023-10-09 16:24:17 +02:00
2024-03-04 16:24:46 +01:00
2024-03-04 16:24:46 +01:00
2024-01-11 13:58:04 -08:00
2024-03-04 16:24:46 +01:00