mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
nfsctl: symlink has no business bumping link count of parent directory
mkdir should incrment the parent's refcount; symlink should not. Reviewed-by: NeilBrown <neil@brown.name> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
76eeb9b8de
commit
7e6135fe7b
|
|
@ -1181,7 +1181,6 @@ static int __nfsd_symlink(struct inode *dir, struct dentry *dentry,
|
|||
inode->i_size = strlen(content);
|
||||
|
||||
d_add(dentry, inode);
|
||||
inc_nlink(dir);
|
||||
fsnotify_create(dir, dentry);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user