Re: [PATCH v2] btrfs: send: lower memory requirements in common case

2014-02-25 Thread David Sterba
On Thu, Feb 20, 2014 at 12:00:23PM +, Filipe David Manana wrote: > > } else { > > - if (is_vmalloc_addr(p->buf)) { > > - tmp_buf = vmalloc(len); > > - if (!tmp_buf) > > - return -ENOMEM; > > -

Re: [PATCH v2] btrfs: send: lower memory requirements in common case

2014-02-20 Thread Filipe David Manana
On Wed, Feb 5, 2014 at 3:17 PM, David Sterba wrote: > The fs_path structure uses an inline buffer and falls back to a chain of > allocations, but vmalloc is not necessary because PATH_MAX fits into > PAGE_SIZE. > > The size of fs_path has been reduced to 256 bytes from PAGE_SIZE, > usually 4k. Exp

[PATCH v2] btrfs: send: lower memory requirements in common case

2014-02-05 Thread David Sterba
The fs_path structure uses an inline buffer and falls back to a chain of allocations, but vmalloc is not necessary because PATH_MAX fits into PAGE_SIZE. The size of fs_path has been reduced to 256 bytes from PAGE_SIZE, usually 4k. Experimental measurements show that most paths on a single filesyst