lkml.org 
[lkml]   [2005]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/25] NTFS: Allow highmem kmalloc() in ntfs_malloc_nofs() and add _nofail() version.
On Fri, 9 Sep 2005, Anton Altaparmakov wrote:
> Also note I only use the ntfs_malloc_nofs() wrapper if I have to. If I
> know how much I am allocating or at least know that the maximum is quite
> small, I use kmalloc() directly. It is pretty much only for the runlist
> allocations that I use the wrapper as the runlist is typically small but
> for fragmented files it can grow huge. I have seen runlists consuming
> over 256kiB of ram, without vmalloc that would be a real problem...

So things like

rl = ntfs_malloc_nofs(rlsize = PAGE_SIZE);

should be changed to kmalloc(), right?

Pekka
-
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/

\
 
 \ /
  Last update: 2005-09-09 13:19    [W:0.596 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site