(link_t): remove unused member linkcount.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-04-06 09:27:33 +03:00
parent 1dc0b325dc
commit 2a45e3bcb0

View File

@ -111,7 +111,6 @@ typedef struct
const struct vfs_class *vfs; const struct vfs_class *vfs;
dev_t dev; dev_t dev;
ino_t ino; ino_t ino;
short linkcount;
mode_t st_mode; mode_t st_mode;
vfs_path_t *src_vpath; vfs_path_t *src_vpath;
vfs_path_t *dst_vpath; vfs_path_t *dst_vpath;
@ -481,7 +480,6 @@ check_hardlinks (const vfs_path_t * src_vpath, const struct stat *src_stat,
lnk->vfs = vfs_path_get_last_path_vfs (src_vpath); lnk->vfs = vfs_path_get_last_path_vfs (src_vpath);
lnk->ino = ino; lnk->ino = ino;
lnk->dev = dev; lnk->dev = dev;
lnk->linkcount = 0;
lnk->st_mode = 0; lnk->st_mode = 0;
lnk->src_vpath = vfs_path_clone (src_vpath); lnk->src_vpath = vfs_path_clone (src_vpath);
lnk->dst_vpath = vfs_path_clone (dst_vpath); lnk->dst_vpath = vfs_path_clone (dst_vpath);