Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1174855 > unrolled thread

Re: [PATCH] f2fs:Make the function check_dnode have a return type of bool

Started byJaegeuk Kim <jaegeuk@kernel.org>
First post2015-07-01 03:00 +0200
Last post2015-07-01 03:10 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] f2fs:Make the function check_dnode have a return type of  bool Jaegeuk Kim <jaegeuk@kernel.org> - 2015-07-01 03:00 +0200
    Re: [PATCH] f2fs:Make the function check_dnode have a return type of  bool Jaegeuk Kim <jaegeuk@kernel.org> - 2015-07-01 03:10 +0200

#1174855 — Re: [PATCH] f2fs:Make the function check_dnode have a return type of bool

FromJaegeuk Kim <jaegeuk@kernel.org>
Date2015-07-01 03:00 +0200
SubjectRe: [PATCH] f2fs:Make the function check_dnode have a return type of bool
Message-ID<pHexA-1N4-3@gated-at.bofh.it>
Hi,

On Mon, Jun 29, 2015 at 04:07:01PM -0400, Nicholas Krause wrote:
> This makes the function check_dnode have a return type of bool
> due to this particular function only ever returning either one
> or zero as its return value.
> 
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
>  fs/f2fs/gc.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
> index e1e7361..ebd4c6c 100644
> --- a/fs/f2fs/gc.c
> +++ b/fs/f2fs/gc.c
> @@ -487,7 +487,7 @@ block_t start_bidx_of_node(unsigned int node_ofs, struct f2fs_inode_info *fi)
>  	return bidx * ADDRS_PER_BLOCK + ADDRS_PER_INODE(fi);
>  }
>  
> -static int check_dnode(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
> +static bool check_dnode(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,

Then, what about bool is_data_alive() ?

Thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1174857

FromJaegeuk Kim <jaegeuk@kernel.org>
Date2015-07-01 03:10 +0200
Message-ID<pHeHg-2dE-7@gated-at.bofh.it>
In reply to#1174855
On Tue, Jun 30, 2015 at 08:56:17PM -0400, nick wrote:
> 
> 
> On 2015-06-30 08:50 PM, Jaegeuk Kim wrote:
> > Hi,
> > 
> > On Mon, Jun 29, 2015 at 04:07:01PM -0400, Nicholas Krause wrote:
> >> This makes the function check_dnode have a return type of bool
> >> due to this particular function only ever returning either one
> >> or zero as its return value.
> >>
> >> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> >> ---
> >>  fs/f2fs/gc.c | 10 +++++-----
> >>  1 file changed, 5 insertions(+), 5 deletions(-)
> >>
> >> diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
> >> index e1e7361..ebd4c6c 100644
> >> --- a/fs/f2fs/gc.c
> >> +++ b/fs/f2fs/gc.c
> >> @@ -487,7 +487,7 @@ block_t start_bidx_of_node(unsigned int node_ofs, struct f2fs_inode_info *fi)
> >>  	return bidx * ADDRS_PER_BLOCK + ADDRS_PER_INODE(fi);
> >>  }
> >>  
> >> -static int check_dnode(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
> >> +static bool check_dnode(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
> > 
> > Then, what about bool is_data_alive() ?
> > 
> > Thanks,
> > 
> There is no function of this name in my searching with either lxr or cscope.
> Either my tools aren't finding it or the function you are requesting I make
> bool has been removed.
> Nick

I meant;
if you want to change the return type as a bool type, what about changing its
function name too? (e.g., is_data_alive())
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web