'\" t .\" Title: vfs_unlink .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "VFS_UNLINK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" vfs_unlink \- unlink a filesystem object .SH "SYNOPSIS" .HP \w'int\ vfs_unlink('u .BI "int vfs_unlink(struct\ inode\ *\ " "dir" ", struct\ dentry\ *\ " "dentry" ", struct\ inode\ **\ " "delegated_inode" ");" .SH "ARGUMENTS" .PP \fIdir\fR .RS 4 parent directory .RE .PP \fIdentry\fR .RS 4 victim .RE .PP \fIdelegated_inode\fR .RS 4 returns victim inode, if the inode is delegated\&. .RE .SH "DESCRIPTION" .PP The caller must hold dir\->i_mutex\&. .PP 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\&. .PP 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\&. .SH "COPYRIGHT" .br