]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Convert callers of ext4_get_blocks() to use ext4_map_blocks()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 17 May 2010 00:00:00 +0000 (20:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 May 2010 00:00:00 +0000 (20:00 -0400)
commit8bd4a2074a90ecb1d249335f8eb9829d8b015a6b
treebcec0a1004f413b70087e2c43097892f87f21cc3
parent7a134f61af755a0a18ecde92798f5ab872ff1660
ext4: Convert callers of ext4_get_blocks() to use ext4_map_blocks()

This saves a huge amount of stack space by avoiding unnecesary struct
buffer_head's from being allocated on the stack.

In addition, to make the code easier to understand, collapse and
refactor ext4_get_block(), ext4_get_block_write(),
noalloc_get_block_write(), into a single function.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/dir.c
fs/ext4/extents.c
fs/ext4/inode.c