[Libsysio-commit] HEAD: libsysio/drivers/incore fs_incore.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-10-15 18:01:33
|
Update of /cvsroot/libsysio/libsysio/drivers/incore In directory sc8-pr-cvs1:/tmp/cvs-serv9577/drivers/incore Modified Files: fs_incore.c Log Message: Eliminated the i-node number field from the inode structure. We already carry the file identifier so it was redundant. Problematic too, in that it can be 32 or 64 bits in size. This forced _sysio_i_new() and _sysio_i_find() to change -- They no longer take the i-node number as an argument. Updated the driver calls to reflect the new usage. The i-node cache is now indexed by hashing the file identifier as opposed to just using the, no longer maintained, i-node number. This caused _sysio_i_find to become 2+ percent more expensive to use. Acceptable for me. Index: fs_incore.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/incore/fs_incore.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -w -b -B -p -r1.8 -r1.9 --- fs_incore.c 13 Oct 2003 01:04:34 -0000 1.8 +++ fs_incore.c 15 Oct 2003 18:00:54 -0000 1.9 @@ -625,7 +625,6 @@ _sysio_incore_fsswop_mount(const char *s */ rooti = _sysio_i_new(fs, - icino->ici_st.st_ino, &icino->ici_fileid, icino->ici_st.st_mode, 0, @@ -827,7 +826,7 @@ _sysio_incore_dirop_lookup(struct pnode fileid.fid_data = &de->d_ino; fileid.fid_len = sizeof(de->d_ino); ino = - _sysio_i_find(ino->i_fs, de->d_ino, &fileid); + _sysio_i_find(ino->i_fs, &fileid); #ifdef notdef if (ino) goto out; @@ -848,7 +847,6 @@ _sysio_incore_dirop_lookup(struct pnode abort(); ino = _sysio_i_new(ino->i_fs, - icino->ici_st.st_ino, &icino->ici_fileid, icino->ici_st.st_mode, 0, @@ -1158,7 +1156,6 @@ _sysio_incore_dirop_mkdir(struct pnode * */ ino = _sysio_i_new(pno->p_parent->p_base->pb_ino->i_fs, - stat.st_ino, &icino->ici_fileid, stat.st_mode, 0, @@ -1301,7 +1298,6 @@ incore_create(struct pnode *pno, struct */ ino = _sysio_i_new(dino->i_fs, - st->st_ino, &icino->ici_fileid, st->st_mode, st->st_rdev, |