Orabug:
26401569
This patch is a fix to the conflict of the upstream commit
bb0d2b8ad29
(ovl: fix sgid on directory), convert the lock type to match with the
lock usage of the current kernel.
Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
.ia_valid = ATTR_MODE,
.ia_mode = stat->mode,
};
- inode_lock(newdentry->d_inode);
+ mutex_lock(&newdentry->d_inode->i_mutex);
err = notify_change(newdentry, &attr, NULL);
- inode_unlock(newdentry->d_inode);
+ mutex_unlock(&newdentry->d_inode->i_mutex);
if (err)
goto out_cleanup;
}