Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109360548
D48825.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
951 B
Referenced Files
None
Subscribers
None
D48825.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -6224,6 +6224,7 @@
a = ap;
dvp = a->a_dvp;
vp = a->a_vp;
+ vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
vn_seqc_write_begin(dvp);
vn_seqc_write_begin(vp);
}
@@ -6292,6 +6293,7 @@
a = ap;
dvp = a->a_dvp;
vp = a->a_vp;
+ vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
vn_seqc_write_begin(dvp);
vn_seqc_write_begin(vp);
}
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -2034,7 +2034,6 @@
if (error != 0)
goto out;
#endif
- vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
error = VOP_REMOVE(nd.ni_dvp, vp, &nd.ni_cnd);
#ifdef MAC
out:
@@ -4002,7 +4001,6 @@
goto fdout;
goto restart;
}
- vfs_notify_upper(vp, VFS_NOTIFY_UPPER_UNLINK);
error = VOP_RMDIR(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd);
vn_finished_write(mp);
out:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 1:28 AM (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16463711
Default Alt Text
D48825.diff (951 B)
Attached To
Mode
D48825: unlink, rmdir: call notify_upper from VOP pre method instead of syscall
Attached
Detach File
Event Timeline
Log In to Comment