Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: take the last remnants of ->d_fsdata use out

[spotted while going through ->d_fsdata handling around d_splice_alias();
don't really care which tree that goes through]

The only thing even looking at ->d_fsdata in there (since 2012)
had been kfree(dentry->d_fsdata) in btrfs_dentry_delete(). Which,
incidentally, is all btrfs_dentry_delete() does.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Al Viro and committed by
David Sterba
7a1b1e70 75cb857d

-6
-6
fs/btrfs/inode.c
··· 6045 6045 return 0; 6046 6046 } 6047 6047 6048 - static void btrfs_dentry_release(struct dentry *dentry) 6049 - { 6050 - kfree(dentry->d_fsdata); 6051 - } 6052 - 6053 6048 static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry, 6054 6049 unsigned int flags) 6055 6050 { ··· 10839 10844 10840 10845 const struct dentry_operations btrfs_dentry_operations = { 10841 10846 .d_delete = btrfs_dentry_delete, 10842 - .d_release = btrfs_dentry_release, 10843 10847 };