[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/7] ext2fs: fix diskfs_pager_users
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 3/7] ext2fs: fix diskfs_pager_users |
Date: |
Mon, 26 May 2014 13:41:30 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 26 May 2014 13:19:15 +0200, a écrit :
> This fixes a bug introduced in 86122789.
>
> * ext2fs/pager.c (diskfs_pager_users): We count file_pager_bucket,
> which does not include the disk pagers. Fix condition accordingly.
Apparently I missed it indeed.
Ack.
> ---
> ext2fs/pager.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ext2fs/pager.c b/ext2fs/pager.c
> index 017efcc..ce5bc6d 100644
> --- a/ext2fs/pager.c
> +++ b/ext2fs/pager.c
> @@ -1449,7 +1449,7 @@ diskfs_pager_users ()
> {
> int npagers = ports_count_bucket (file_pager_bucket);
>
> - if (npagers <= 1)
> + if (npagers == 0)
> return 0;
>
> if (MAY_CACHE)
> --
> 2.0.0.rc2
>
--
Samuel
> Voici mon problème, j'ai deux PCs relies par des cartes ethernet,
> configures avec le protocole PPP.
-+- Romain in Guide du linuxien pervers - "Ils sont fous ces romains !" -+-
- [PATCH 1/7] term: fix memory leak, Justus Winter, 2014/05/26
- [PATCH 2/7] libpager: drop unused fields from struct pager, Justus Winter, 2014/05/26
- [PATCH 5/7] libdiskfs: fix node leak in the name cache, Justus Winter, 2014/05/26
- [PATCH 4/7] trans/mtab: fix initialization, Justus Winter, 2014/05/26
- [PATCH 6/7] libihash: do not use an integer hash function by default, Justus Winter, 2014/05/26
- [PATCH 3/7] ext2fs: fix diskfs_pager_users, Justus Winter, 2014/05/26
- Re: [PATCH 3/7] ext2fs: fix diskfs_pager_users,
Samuel Thibault <=
- [PATCH 7/7] libtrivfs: lock-less reference counting for trivfs_peropen objects, Justus Winter, 2014/05/26
- Re: [PATCH 1/7] term: fix memory leak, Samuel Thibault, 2014/05/26