diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /fs/sysv/namei.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'fs/sysv/namei.c')
| -rw-r--r-- | fs/sysv/namei.c | 9 | 
1 files changed, 2 insertions, 7 deletions
| diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index 250b0755b908..4d5d20491ffd 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c @@ -51,14 +51,9 @@ static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, un  	if (dentry->d_name.len > SYSV_NAMELEN)  		return ERR_PTR(-ENAMETOOLONG);  	ino = sysv_inode_by_name(dentry); - -	if (ino) { +	if (ino)  		inode = sysv_iget(dir->i_sb, ino); -		if (IS_ERR(inode)) -			return ERR_CAST(inode); -	} -	d_add(dentry, inode); -	return NULL; +	return d_splice_alias(inode, dentry);  }  static int sysv_mknod(struct inode * dir, struct dentry * dentry, umode_t mode, dev_t rdev) |