[PATCH] Obsolete nodes that are unlinked when possible

Joakim Tjernlund joakim.tjernlund at transmode.se
Thu Apr 19 15:34:06 EDT 2007


Ping.

> -----Original Message-----
> From: linux-mtd-bounces at lists.infradead.org 
> [mailto:linux-mtd-bounces at lists.infradead.org] On Behalf Of 
> Joakim Tjernlund
> Sent: den 16 mars 2007 16:45
> To: linux-mtd at lists.infradead.org
> Subject: [PATCH] Obsolete nodes that are unlinked when possible
> 
> >From d3e51689869fae928f6289307452a698359302ff Mon Sep 17 
> 00:00:00 2001
> From: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> Date: Fri, 16 Mar 2007 16:15:45 +0100
> Subject: [PATCH] Obsolete nodes that are unlinked when possible.
> 
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> ---
>  fs/jffs2/write.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/jffs2/write.c b/fs/jffs2/write.c
> index 6717679..57a79a6 100644
> --- a/fs/jffs2/write.c
> +++ b/fs/jffs2/write.c
> @@ -507,8 +507,7 @@ int jffs2_do_unlink(struct jffs2_sb_info 
> *c, struct jffs2_inode_info *dir_f,
>  	uint32_t alloclen;
>  	int ret;
>  
> -	if (1 /* alternative branch needs testing */ ||
> -	    !jffs2_can_mark_obsolete(c)) {
> +	if (!jffs2_can_mark_obsolete(c)) {
>  		/* We can't mark stuff obsolete on the medium. 
> We need to write a deletion dirent */
>  
>  		rd = jffs2_alloc_raw_dirent();
> -- 
> 1.4.4.4
> 
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 
> 
> 





More information about the linux-mtd mailing list