提交 4022abf4 编写于 作者: C Chris Mason

Btrfs: delete unused function: btrfs_invalidate_dcache_root

Snapshot and subvolume creation no longer need this helper.
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 607d432d
...@@ -4358,31 +4358,6 @@ static void btrfs_truncate(struct inode *inode) ...@@ -4358,31 +4358,6 @@ static void btrfs_truncate(struct inode *inode)
btrfs_btree_balance_dirty(root, nr); btrfs_btree_balance_dirty(root, nr);
} }
/*
* Invalidate a single dcache entry at the root of the filesystem.
* Needed after creation of snapshot or subvolume.
*/
static void btrfs_invalidate_dcache_root(struct inode *dir,
char *name, int namelen)
{
struct dentry *alias, *entry;
struct qstr qstr;
alias = d_find_alias(dir);
if (alias) {
qstr.name = name;
qstr.len = namelen;
/* change me if btrfs ever gets a d_hash operation */
qstr.hash = full_name_hash(qstr.name, qstr.len);
entry = d_lookup(alias, &qstr);
dput(alias);
if (entry) {
d_invalidate(entry);
dput(entry);
}
}
}
/* /*
* create a new subvolume directory/inode (helper for the ioctl). * create a new subvolume directory/inode (helper for the ioctl).
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册