[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/8] ext2fs: use correct type for block numbers
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 1/8] ext2fs: use correct type for block numbers |
Date: |
Tue, 24 Jun 2014 01:42:57 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Fri 20 Jun 2014 19:15:04 +0200, a écrit :
> * ext2fs/dir.c (count_dirents): Use block_t for nb.
> (diskfs_get_directs): Likewise for blkno, nblks.
Ack.
> ---
> ext2fs/dir.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/ext2fs/dir.c b/ext2fs/dir.c
> index 337314c..470b7e9 100644
> --- a/ext2fs/dir.c
> +++ b/ext2fs/dir.c
> @@ -823,7 +823,7 @@ diskfs_drop_dirstat (struct node *dp, struct dirstat *ds)
> write the answer down in its dirents array. As a side affect
> fill BUF with the block. */
> static error_t
> -count_dirents (struct node *dp, int nb, char *buf)
> +count_dirents (struct node *dp, block_t nb, char *buf)
> {
> size_t amt;
> char *offinblk;
> @@ -868,8 +868,8 @@ diskfs_get_directs (struct node *dp,
> vm_size_t bufsiz,
> int *amt)
> {
> - int blkno;
> - int nblks;
> + block_t blkno;
> + block_t nblks;
> int curentry;
> char buf[DIRBLKSIZ];
> char *bufp;
> --
> 2.0.0
>
--
Samuel
<N> je déteste import
<N> parce que lorsque tu fais du python et que tu oublies le #!/bin/env python
et que tu mets le fichier exécutable
<N> import est exécuté
-+- #ens-mim - pourquoi mon script python change le curseur de la souris ?! -+-
- [PATCH 1/8] ext2fs: use correct type for block numbers, Justus Winter, 2014/06/22
- [PATCH 3/8] fatfs: use a seperate lock to protect nodehash, Justus Winter, 2014/06/22
- [PATCH 2/8] ext2fs: use a seperate lock to protect nodehash, Justus Winter, 2014/06/22
- [PATCH 4/8] isofs: use a seperate lock to protect node_cache, Justus Winter, 2014/06/22
- [PATCH 6/8] libdiskfs: lock-less reference counting of nodes, Justus Winter, 2014/06/22
- [PATCH 5/8] tmpfs: use a seperate lock to protect all_nodes, Justus Winter, 2014/06/22
- [PATCH 7/8] libports: use a global hash table for the lookups, Justus Winter, 2014/06/22
- [PATCH 8/8] libports: lock-less reference counting for port_info objects, Justus Winter, 2014/06/22
- Re: [PATCH 1/8] ext2fs: use correct type for block numbers,
Samuel Thibault <=