From cca9700f6c8afa54872846ef64ee2edfe0e3c591 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Sat, 16 Jan 2016 23:14:04 +0000
Subject: [PATCH] direntry.c remove unused variables
self counting only
---
lib/vfs/direntry.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c
index 74b0c49..66742b5 100644
a
|
b
|
struct dirhandle |
92 | 92 | |
93 | 93 | /*** file scope variables ************************************************************************/ |
94 | 94 | |
95 | | static volatile int total_inodes = 0, total_entries = 0; |
96 | | |
97 | 95 | /*** file scope functions ************************************************************************/ |
98 | 96 | /* --------------------------------------------------------------------------------------------- */ |
99 | 97 | |
… |
… |
vfs_s_new_inode (struct vfs_class *me, struct vfs_s_super *super, struct stat *i |
891 | 889 | ino->st.st_dev = MEDATA->rdev; |
892 | 890 | |
893 | 891 | super->ino_usage++; |
894 | | total_inodes++; |
895 | 892 | |
896 | 893 | CALL (init_inode) (me, ino); |
897 | 894 | |
… |
… |
vfs_s_free_inode (struct vfs_class *me, struct vfs_s_inode *ino) |
923 | 920 | unlink (ino->localname); |
924 | 921 | g_free (ino->localname); |
925 | 922 | } |
926 | | total_inodes--; |
927 | 923 | ino->super->ino_usage--; |
928 | 924 | g_free (ino); |
929 | 925 | } |
… |
… |
vfs_s_new_entry (struct vfs_class *me, const char *name, struct vfs_s_inode *ino |
936 | 932 | struct vfs_s_entry *entry; |
937 | 933 | |
938 | 934 | entry = g_new0 (struct vfs_s_entry, 1); |
939 | | total_entries++; |
940 | 935 | |
941 | 936 | entry->name = g_strdup (name); |
942 | 937 | entry->ino = inode; |
… |
… |
vfs_s_free_entry (struct vfs_class *me, struct vfs_s_entry *ent) |
963 | 958 | vfs_s_free_inode (me, ent->ino); |
964 | 959 | } |
965 | 960 | |
966 | | total_entries--; |
967 | 961 | g_free (ent); |
968 | 962 | } |
969 | 963 | |