Re: [PATCH 1/2] bufferhead: Add _gfp version for sb_getblk()

2015-07-01 Thread Theodore Ts'o
On Tue, Jun 30, 2015 at 09:26:48AM +0300, Nikolay Borisov wrote: > sb_getblk() is used during ext4 (and possibly other FSes) writeback > paths. Sometimes such path require allocating memory and guaranteeing > that such allocation won't block. Currently, however, there is no way > to provide user fl

[PATCH 1/2] bufferhead: Add _gfp version for sb_getblk()

2015-06-29 Thread Nikolay Borisov
sb_getblk() is used during ext4 (and possibly other FSes) writeback paths. Sometimes such path require allocating memory and guaranteeing that such allocation won't block. Currently, however, there is no way to provide user flags for sb_getblk which could lead to deadlocks. This patch implements a