fs,userns: Change inode_capable to capable_wrt_inode_uidgid
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / xfs / xfs_ioctl.c
index bcfe612..78e62cc 100644 (file)
@@ -1241,7 +1241,7 @@ xfs_ioctl_setattr(
                 * cleared upon successful return from chown()
                 */
                if ((ip->i_d.di_mode & (S_ISUID|S_ISGID)) &&
-                   !inode_capable(VFS_I(ip), CAP_FSETID))
+                   !capable_wrt_inode_uidgid(VFS_I(ip), CAP_FSETID))
                        ip->i_d.di_mode &= ~(S_ISUID|S_ISGID);
 
                /*