Re: [PATCH 06/10] AXFS: axfs_super.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Phillip Lougher
Date: Thursday, August 21, 2008 - 6:43 pm

Jared Hulbert wrote:

No need to do

	if(xxx)
		vfree(xxx)

vfree/kfree can cope with NULL pointers.



Again, just kfree(xxx)/vfree(xxx)


Always returns 0, consider changing to static void


Consider initialising err to -EINVAL at declaration time, and get rid of 
this else,


and this one.



 From this it would appear that if the region data can't be mapped XIP 
(i.e. it is compressed or on a block device), it is cached in its 
entirety in RAM?

This implies for block devices that the entire filesystem metadata has 
to be cached in RAM.  This severely limits the size of AXFS filesystems 
when using block devices, or the else memory usage will be excessive.



Just do kfree(xxx)



Redundant code


Phillip


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 06/10] AXFS: axfs_super.c, Jared Hulbert, (Wed Aug 20, 10:45 pm)
Re: [PATCH 06/10] AXFS: axfs_super.c, Carsten Otte, (Thu Aug 21, 1:55 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Sven Wegener, (Thu Aug 21, 2:04 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Sven Wegener, (Thu Aug 21, 4:27 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Sven Wegener, (Thu Aug 21, 7:54 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Phillip Lougher, (Thu Aug 21, 6:43 pm)
Re: [PATCH 06/10] AXFS: axfs_super.c, Jared Hulbert, (Thu Aug 21, 8:05 pm)
Re: [PATCH 06/10] AXFS: axfs_super.c, Bernhard Reutner-Fischer, (Fri Aug 22, 5:07 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Arnd Bergmann, (Fri Aug 22, 9:52 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Phillip Lougher, (Fri Aug 22, 10:37 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Jared Hulbert, (Fri Aug 22, 10:42 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Jared Hulbert, (Fri Aug 22, 10:43 am)
Re: [PATCH 06/10] AXFS: axfs_super.c, Arnd Bergmann, (Fri Aug 22, 12:37 pm)
Re: [PATCH 06/10] AXFS: axfs_super.c, Arnd Bergmann, (Fri Aug 22, 12:49 pm)
Re: [PATCH 06/10] AXFS: axfs_super.c, Geert Uytterhoeven, (Wed Oct 29, 6:59 am)