Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_alloc.c
Show First 20 Lines • Show All 2,437 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
int | int | ||||
ffs_vfree(pvp, ino, mode) | ffs_vfree(pvp, ino, mode) | ||||
struct vnode *pvp; | struct vnode *pvp; | ||||
ino_t ino; | ino_t ino; | ||||
int mode; | int mode; | ||||
{ | { | ||||
struct ufsmount *ump; | struct ufsmount *ump; | ||||
struct inode *ip; | |||||
emaste: OK | |||||
if (DOINGSOFTDEP(pvp)) { | if (DOINGSOFTDEP(pvp)) { | ||||
softdep_freefile(pvp, ino, mode); | softdep_freefile(pvp, ino, mode); | ||||
return (0); | return (0); | ||||
} | } | ||||
ip = VTOI(pvp); | |||||
ump = VFSTOUFS(pvp->v_mount); | ump = VFSTOUFS(pvp->v_mount); | ||||
return (ffs_freefile(ump, ump->um_fs, ump->um_devvp, ino, mode, NULL)); | return (ffs_freefile(ump, ump->um_fs, ump->um_devvp, ino, mode, NULL)); | ||||
} | } | ||||
/* | /* | ||||
* Do the actual free operation. | * Do the actual free operation. | ||||
* The specified inode is placed back in the free map. | * The specified inode is placed back in the free map. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 763 Lines • Show Last 20 Lines |
OK