lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4887A525.4000202@redhat.com>
Date:	Wed, 23 Jul 2008 16:39:49 -0500
From:	Clark Williams <williams@...hat.com>
To:	Ryan Hope <rmh3093@...il.com>
CC:	LKML <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>
Subject: Re: [-rt][patches] fix compilation errors

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ryan Hope wrote:
> Here is another compile fix:
> 
> diff --git a/fs/xfs/linux-2.6/xfs_fs_subr.c b/fs/xfs/linux-2.6/xfs_fs_subr.c
> index 1eefe61..097feb0 100644
> --- a/fs/xfs/linux-2.6/xfs_fs_subr.c
> +++ b/fs/xfs/linux-2.6/xfs_fs_subr.c
> @@ -33,7 +33,7 @@ xfs_tosspages(
>  {
>  	struct address_space *mapping = ip->i_vnode->i_mapping;
> 
> -	if (mapping->nrpages)
> +	if (mapping_nrpages(mapping))
>  		truncate_inode_pages(mapping, first);
>  }
> 
> @@ -47,7 +47,7 @@ xfs_flushinval_pages(
>  	struct address_space *mapping = ip->i_vnode->i_mapping;
>  	int		ret = 0;
> 
> -	if (mapping->nrpages) {
> +	if (mapping_nrpages(mapping)) {
>  		xfs_iflags_clear(ip, XFS_ITRUNCATED);
>  		ret = filemap_write_and_wait(mapping);
>  		if (!ret)
> diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c
> index 5e3b575..b6b8d39 100644
> --- a/fs/xfs/linux-2.6/xfs_lrw.c
> +++ b/fs/xfs/linux-2.6/xfs_lrw.c
> @@ -242,7 +242,7 @@ xfs_read(
>  	}
> 
>  	if (unlikely(ioflags & IO_ISDIRECT)) {
> -		if (inode->i_mapping->nrpages)
> +		if (mapping_nrpages(inode->i_mapping))
>  			ret = xfs_flushinval_pages(ip, (*offset & PAGE_CACHE_MASK),
>  						    -1, FI_REMAPF_LOCKED);
>  		mutex_unlock(&inode->i_mutex);
> @@ -654,7 +654,7 @@ start:
>  			return XFS_ERROR(-EINVAL);
>  		}
> 
> -		if (!need_i_mutex && (mapping->nrpages || pos > xip->i_size)) {
> +		if (!need_i_mutex && (mapping_nrpages(mapping) || pos > xip->i_size)) {
>  			xfs_iunlock(xip, XFS_ILOCK_EXCL|iolock);
>  			iolock = XFS_IOLOCK_EXCL;
>  			need_i_mutex = 1;
> @@ -722,7 +722,7 @@ retry:
>  	current->backing_dev_info = mapping->backing_dev_info;
> 
>  	if ((ioflags & IO_ISDIRECT)) {
> -		if (mapping->nrpages) {
> +		if (mapping_nrpages(mapping)) {
>  			WARN_ON(need_i_mutex == 0);
>  			xfs_inval_cached_trace(xip, pos, -1,
>  					(pos & PAGE_CACHE_MASK), -1);
> 
> 

Applied. Make sure you update, since there are a couple of bug fixes up there as
well. Also, I'm focusing on 64-bit atm, so your 32-bit fixes are appreciated.

Clark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiHpSUACgkQHyuj/+TTEp0fPQCePSXacZUseSSy8jWgFF0dTWsK
SMwAoJQc4Lfq8nNh0Y/S3sorkgdDqBNk
=NoDF
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ