[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/9] ext2fs: simplify expression
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 6/9] ext2fs: simplify expression |
Date: |
Mon, 28 Apr 2014 12:35:07 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 28 Apr 2014 12:20:01 +0200, a écrit :
> * ext2fs/pager.c (add_pager_max_prot): Simplify expression.
Ack.
> ---
> ext2fs/pager.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/ext2fs/pager.c b/ext2fs/pager.c
> index 6e99c83..9116b8c 100644
> --- a/ext2fs/pager.c
> +++ b/ext2fs/pager.c
> @@ -1453,8 +1453,7 @@ diskfs_max_user_pager_prot ()
> if (upi->type == FILE_DATA)
> max_prot |= upi->max_prot;
> /* Stop iterating if MAX_PROT is as filled as it's going to get. */
> - return
> - (max_prot == (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)) ? 1 : 0;
> + return max_prot == (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE);
> }
>
> disable_caching (); /* Make any silly pagers go away. */
> --
> 1.9.2
>
--
Samuel
/* Halley */
(Halley's comment.)
- [PATCH] libports: reduce malloc overhead in _ports_bucket_class_iterate, (continued)
[PATCH 4/9] exec: abbreviate the task name if necessary, Justus Winter, 2014/04/28
[PATCH 5/9] ext2fs: fix type of inum, Justus Winter, 2014/04/28
[PATCH 7/9] ext2fs: use two distinct pager buckets for the disk and file pager, Justus Winter, 2014/04/28
[PATCH 9/9] libpager: remove all the unused seqno parameters, Justus Winter, 2014/04/28
[PATCH 6/9] ext2fs: simplify expression, Justus Winter, 2014/04/28
- Re: [PATCH 6/9] ext2fs: simplify expression,
Samuel Thibault <=
[PATCH 8/9] libpager: make libpager single-threaded, Justus Winter, 2014/04/28
Re: let's make libpager single-threaded, Richard Braun, 2014/04/28