Function report |
Source Code:fs\namei.c |
Create Date:2022-07-28 20:05:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vfs_unlink - unlink a filesystem object*@dir: parent directory*@dentry: victim*@delegated_inode: returns victim inode, if the inode is delegated.* The caller must hold dir->i_mutex.* If vfs_unlink discovers a delegation, it will return -EWOULDBLOCK and
Proto:int vfs_unlink(struct inode *dir, struct dentry *dentry, struct inode **delegated_inode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | dir | >i_mutex before doing so. |
struct dentry * | dentry | |
struct inode ** | delegated_inode |
3933 | inode_lock(target) |
3934 | If is_local_mountpoint(dentry) Then error = -EBUSY |
3936 | Else |
3938 | If Not error Then |
3939 | error = try_break_deleg(target, delegated_inode) |
3942 | error = unlink(>i_mutex before doing so., dentry) |
3943 | If Not error Then |
3950 | out : |
3951 | inode_unlock(target) |
3954 | If Not error && Not ( protected by d_lock & DCACHE_NFSFS_RENAMED) Then |
3959 | Return error |
Name | Describe |
---|---|
do_unlinkat | Make sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |