summaryrefslogtreecommitdiff
path: root/fs/ntfs/inode.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-01-19 20:23:56 +0100
committerDavid Sterba <dsterba@suse.com>2024-03-04 16:24:47 +0100
commit1686570265559ebfa828c1b784a31407ec2877bd (patch)
tree060385576045577d3bf3bc07ba8f7d0cd3e2b7c3 /fs/ntfs/inode.c
parent4dc4a3be6cc4ef0a04785124afb0bd4fd06298ff (diff)
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>
Diffstat (limited to 'fs/ntfs/inode.c')
0 files changed, 0 insertions, 0 deletions