Re: [PATCH 5/6] Btrfs-progs: fsck: reduce memory usage of extent record struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 18, 2014 at 08:02:46PM +0800, Wang Shilong wrote:
> @@ -2742,7 +2742,10 @@ static int add_extent_rec(struct cache_tree *extent_cache,
> -	rec->found_rec = extent_rec;
> +	if (extent_rec)
> +		rec->found_rec = 1;
> +	else
> +		rec->found_rec = 0;

I've modified this to avoid 'if'

	rec->found_rec = !!extent_rec;

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux