summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-12-02 09:57:03 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-02 09:57:03 -0500
commit4022abf4498186de2e893ce614333216f2add461 (patch)
tree908e08871a551e649832d9047dd4886c4d45a88e /fs/btrfs
parent607d432da0542e84ddcd358adfddac6f68500e3d (diff)
downloadop-kernel-dev-4022abf4498186de2e893ce614333216f2add461.zip
op-kernel-dev-4022abf4498186de2e893ce614333216f2add461.tar.gz
Btrfs: delete unused function: btrfs_invalidate_dcache_root
Snapshot and subvolume creation no longer need this helper. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-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 bd58ba6..09efc94 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -4359,31 +4359,6 @@ out:
}
/*
- * 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).
*/
int btrfs_create_subvol_root(struct btrfs_root *new_root, struct dentry *dentry,
OpenPOWER on IntegriCloud