table of contents
other versions
- jessie 3.16.56-1+deb8u1
VFS_UNLINK(9) | The Linux VFS | VFS_UNLINK(9) |
NAME¶
vfs_unlink - unlink a filesystem objectSYNOPSIS¶
int
vfs_unlink(struct inode * dir,
struct dentry * dentry,
struct inode ** delegated_inode);
ARGUMENTS¶
dirparent directory
dentry
victim
delegated_inode
returns victim inode, if the inode is delegated.
DESCRIPTION¶
The caller must hold dir->i_mutex. If vfs_unlink discovers a delegation, it will return -EWOULDBLOCK and return a reference to the inode in delegated_inode. The caller should then break the delegation on that inode and retry. Because breaking a delegation may take a long time, the caller should drop dir->i_mutex before doing so. Alternatively, a caller may pass NULL for delegated_inode. This may be appropriate for callers that expect the underlying filesystem not to be NFS exported.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |