aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/inode.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index bd58ba655a4d..09efc9473a3d 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4359,31 +4359,6 @@ out:
4359} 4359}
4360 4360
4361/* 4361/*
4362 * Invalidate a single dcache entry at the root of the filesystem.
4363 * Needed after creation of snapshot or subvolume.
4364 */
4365static void btrfs_invalidate_dcache_root(struct inode *dir,
4366 char *name, int namelen)
4367{
4368 struct dentry *alias, *entry;
4369 struct qstr qstr;
4370
4371 alias = d_find_alias(dir);
4372 if (alias) {
4373 qstr.name = name;
4374 qstr.len = namelen;
4375 /* change me if btrfs ever gets a d_hash operation */
4376 qstr.hash = full_name_hash(qstr.name, qstr.len);
4377 entry = d_lookup(alias, &qstr);
4378 dput(alias);
4379 if (entry) {
4380 d_invalidate(entry);
4381 dput(entry);
4382 }
4383 }
4384}
4385
4386/*
4387 * create a new subvolume directory/inode (helper for the ioctl). 4362 * create a new subvolume directory/inode (helper for the ioctl).
4388 */ 4363 */
4389int btrfs_create_subvol_root(struct btrfs_root *new_root, struct dentry *dentry, 4364int btrfs_create_subvol_root(struct btrfs_root *new_root, struct dentry *dentry,