]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: trim allocation requests to group size
authorJan Kara <jack@suse.cz>
Fri, 27 Jan 2017 19:34:30 +0000 (14:34 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2017 19:34:30 +0000 (14:34 -0500)
commit43f219f0ddbd194ce6359518b20c2a2f3c8cffd6
treeeff784d1c9b958a05db5f6cccf5938a157a6c175
parentc5d466ed1db60c865657dfb9131415ab131a657b
ext4: trim allocation requests to group size

If filesystem groups are artifically small (using parameter -g to
mkfs.ext4), ext4_mb_normalize_request() can result in a request that is
larger than a block group. Trim the request size to not confuse
allocation code.

Reported-by: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/mballoc.c