]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/xfs/xfs_ioctl.c
xfs: null unused quota inodes when quota is on
[karo-tx-linux.git] / fs / xfs / xfs_ioctl.c
index 55724c8b204b901f695d7a11714cdbc13bc67f50..8bc1bbce74517c95675dc661412e946e456fedbe 100644 (file)
@@ -1216,7 +1216,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);
 
                /*