mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 09:25:17 +08:00
rtemsbsd/vfs: Use VOP_REMOVE to remove file nodes
This commit is contained in:
@@ -679,7 +679,11 @@ restart:
|
|||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
|
vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
|
||||||
error = VOP_RMDIR(dvp, vp, &cn);
|
if (vp->v_type == VDIR) {
|
||||||
|
error = VOP_RMDIR(dvp, vp, &cn);
|
||||||
|
} else {
|
||||||
|
error = VOP_REMOVE(dvp, vp, &cn);
|
||||||
|
}
|
||||||
vn_finished_write(mp);
|
vn_finished_write(mp);
|
||||||
out:
|
out:
|
||||||
return rtems_bsd_error_to_status_and_errno(error);
|
return rtems_bsd_error_to_status_and_errno(error);
|
||||||
|
Reference in New Issue
Block a user