[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/11] fatfs: improve {enable,disable}_caching
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 11/11] fatfs: improve {enable,disable}_caching |
Date: |
Tue, 13 May 2014 00:37:44 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Mon 12 May 2014 12:05:49 +0200, a écrit :
> * fatfs/pager.c (enable_caching, disable_caching): Iterate over the
> pager class instead of over both pager buckets.
Ditto.
> ---
> fatfs/pager.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/fatfs/pager.c b/fatfs/pager.c
> index f855ecf..7aa5c5e 100644
> --- a/fatfs/pager.c
> +++ b/fatfs/pager.c
> @@ -23,6 +23,9 @@
> #include <hurd/store.h>
> #include "fatfs.h"
>
> +/* XXX */
> +#include "../libpager/priv.h"
> +
> /* A ports bucket to hold disk pager ports. */
> struct port_bucket *disk_pager_bucket;
>
> @@ -963,8 +966,7 @@ disable_caching ()
>
> /* Loop through the pagers and turn off caching one by one,
> synchronously. That should cause termination of each pager. */
> - ports_bucket_iterate (disk_pager_bucket, block_cache);
> - ports_bucket_iterate (file_pager_bucket, block_cache);
> + ports_class_iterate (_pager_class, block_cache);
> }
>
> static void
> @@ -992,8 +994,7 @@ enable_caching ()
> return 0;
> }
>
> - ports_bucket_iterate (disk_pager_bucket, enable_cache);
> - ports_bucket_iterate (file_pager_bucket, enable_cache);
> + ports_class_iterate (_pager_class, enable_cache);
> }
>
> /* Tell diskfs if there are pagers exported, and if none, then
> --
> 2.0.0.rc0
>
--
Samuel
<m> bouhouhouh, b il m'a abandonné. Tout ca parce que je regardais plus mon
emacs que lui !
<m> s/lui/ses messages irc/
-+- #ens-mim esseulé -+-
[PATCH 11/11] fatfs: improve {enable,disable}_caching, Justus Winter, 2014/05/12
- Re: [PATCH 11/11] fatfs: improve {enable,disable}_caching,
Samuel Thibault <=
[PATCH 10/11] ext2fs: improve {enable,disable}_caching, Justus Winter, 2014/05/12
[PATCH 09/11] libihash: use linear probing and fast modulo operation, Justus Winter, 2014/05/12
Re: [PATCH 01/11] ext2fs: cache the superblock, Samuel Thibault, 2014/05/12