diff options
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
| -rw-r--r-- | fs/xfs/xfs_ioctl.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index 13f1b2add390..55bb01173cde 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -665,7 +665,7 @@ xfs_ioc_fsbulkstat(  	struct xfs_fsop_bulkreq	bulkreq;  	struct xfs_ibulk	breq = {  		.mp		= mp, -		.mnt_userns	= file_mnt_user_ns(file), +		.idmap		= file_mnt_idmap(file),  		.ocount		= 0,  	};  	xfs_ino_t		lastino; @@ -754,7 +754,7 @@ xfs_bulkstat_fmt(  static int  xfs_bulk_ireq_setup(  	struct xfs_mount	*mp, -	struct xfs_bulk_ireq	*hdr, +	const struct xfs_bulk_ireq *hdr,  	struct xfs_ibulk	*breq,  	void __user		*ubuffer)  { @@ -780,7 +780,7 @@ xfs_bulk_ireq_setup(  		switch (hdr->ino) {  		case XFS_BULK_IREQ_SPECIAL_ROOT: -			hdr->ino = mp->m_sb.sb_rootino; +			breq->startino = mp->m_sb.sb_rootino;  			break;  		default:  			return -EINVAL; @@ -844,7 +844,7 @@ xfs_ioc_bulkstat(  	struct xfs_bulk_ireq		hdr;  	struct xfs_ibulk		breq = {  		.mp			= mp, -		.mnt_userns		= file_mnt_user_ns(file), +		.idmap			= file_mnt_idmap(file),  	};  	int				error; @@ -1297,7 +1297,7 @@ xfs_ioctl_setattr_check_projid(  int  xfs_fileattr_set( -	struct user_namespace	*mnt_userns, +	struct mnt_idmap	*idmap,  	struct dentry		*dentry,  	struct fileattr		*fa)  { @@ -1371,7 +1371,7 @@ xfs_fileattr_set(  	 */  	if ((VFS_I(ip)->i_mode & (S_ISUID|S_ISGID)) && -	    !capable_wrt_inode_uidgid(mnt_userns, VFS_I(ip), CAP_FSETID)) +	    !capable_wrt_inode_uidgid(idmap, VFS_I(ip), CAP_FSETID))  		VFS_I(ip)->i_mode &= ~(S_ISUID|S_ISGID);  	/* Change the ownerships and register project quota modifications */  |