1VFS_UNLINK(9)                    The Linux VFS                   VFS_UNLINK(9)
2
3
4

NAME

6       vfs_unlink - unlink a filesystem object
7

SYNOPSIS

9       int vfs_unlink(struct inode * dir, struct dentry * dentry,
10                      struct inode ** delegated_inode);
11

ARGUMENTS

13       dir
14           parent directory
15
16       dentry
17           victim
18
19       delegated_inode
20           returns victim inode, if the inode is delegated.
21

DESCRIPTION

23       The caller must hold dir->i_mutex.
24
25       If vfs_unlink discovers a delegation, it will return -EWOULDBLOCK and
26       return a reference to the inode in delegated_inode. The caller should
27       then break the delegation on that inode and retry. Because breaking a
28       delegation may take a long time, the caller should drop dir->i_mutex
29       before doing so.
30
31       Alternatively, a caller may pass NULL for delegated_inode. This may be
32       appropriate for callers that expect the underlying filesystem not to be
33       NFS exported.
34
36Kernel Hackers Manual 3.10         June 2019                     VFS_UNLINK(9)
Impressum