Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148615493
D9628.id25347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9628.id25347.diff
View Options
Index: sys/fs/devfs/devfs_vnops.c
===================================================================
--- sys/fs/devfs/devfs_vnops.c
+++ sys/fs/devfs/devfs_vnops.c
@@ -677,32 +677,6 @@
}
static int
-devfs_fsync(struct vop_fsync_args *ap)
-{
- int error;
- struct bufobj *bo;
- struct devfs_dirent *de;
-
- if (!vn_isdisk(ap->a_vp, &error)) {
- bo = &ap->a_vp->v_bufobj;
- de = ap->a_vp->v_data;
- if (error == ENXIO && bo->bo_dirty.bv_cnt > 0) {
- printf("Device %s went missing before all of the data "
- "could be written to it; expect data loss.\n",
- de->de_dirent->d_name);
-
- error = vop_stdfsync(ap);
- if (bo->bo_dirty.bv_cnt != 0 || error != 0)
- printf("devfs_fsync: vop_stdfsync failed.");
- }
-
- return (0);
- }
-
- return (vop_stdfsync(ap));
-}
-
-static int
devfs_getattr(struct vop_getattr_args *ap)
{
struct vnode *vp = ap->a_vp;
@@ -1910,7 +1884,7 @@
.vop_bmap = VOP_PANIC,
.vop_close = devfs_close,
.vop_create = VOP_PANIC,
- .vop_fsync = devfs_fsync,
+ .vop_fsync = vop_stdfsync,
.vop_getattr = devfs_getattr,
.vop_ioctl = devfs_ioctl,
.vop_link = VOP_PANIC,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 4:04 AM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29997143
Default Alt Text
D9628.id25347.diff (1 KB)
Attached To
Mode
D9628: Simplify devfs_fsync().
Attached
Detach File
Event Timeline
Log In to Comment