]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
Btrfs: delete unused function: btrfs_invalidate_dcache_root
authorChris Mason <chris.mason@oracle.com>
Tue, 2 Dec 2008 14:57:03 +0000 (09:57 -0500)
committerChris Mason <chris.mason@oracle.com>
Tue, 2 Dec 2008 14:57:03 +0000 (09:57 -0500)
Snapshot and subvolume creation no longer need this helper.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index bd58ba655a4da8a2df0164633fc27c05f3bb9b43..09efc9473a3dbecca456d7b25d2082ad84a932f2 100644 (file)
@@ -4358,31 +4358,6 @@ out:
        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).
  */