Skip to content

Commit 7a1b1e7

Browse files
Al Virokdave
authored andcommitted
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 75cb857 commit 7a1b1e7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/btrfs/inode.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6045,11 +6045,6 @@ static int btrfs_dentry_delete(const struct dentry *dentry)
60456045
return 0;
60466046
}
60476047

6048-
static void btrfs_dentry_release(struct dentry *dentry)
6049-
{
6050-
kfree(dentry->d_fsdata);
6051-
}
6052-
60536048
static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,
60546049
unsigned int flags)
60556050
{
@@ -10844,5 +10839,4 @@ static const struct inode_operations btrfs_symlink_inode_operations = {
1084410839

1084510840
const struct dentry_operations btrfs_dentry_operations = {
1084610841
.d_delete = btrfs_dentry_delete,
10847-
.d_release = btrfs_dentry_release,
1084810842
};

0 commit comments

Comments
 (0)