mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
9p: drop nlink remove
We need to drop the link count on the inode of a sucessfull remove Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
5b0fa207d1
commit
d994f4058d
@ -431,6 +431,7 @@ error:
|
||||
|
||||
static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir)
|
||||
{
|
||||
int retval;
|
||||
struct inode *file_inode;
|
||||
struct v9fs_session_info *v9ses;
|
||||
struct p9_fid *v9fid;
|
||||
@ -444,7 +445,10 @@ static int v9fs_remove(struct inode *dir, struct dentry *file, int rmdir)
|
||||
if (IS_ERR(v9fid))
|
||||
return PTR_ERR(v9fid);
|
||||
|
||||
return p9_client_remove(v9fid);
|
||||
retval = p9_client_remove(v9fid);
|
||||
if (!retval)
|
||||
drop_nlink(file_inode);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user