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)
commit2ed886852adfcb070bf350e66a0da0d98b2f3ab5
treebcec0a1004f413b70087e2c43097892f87f21cc3
parente35fd6609b2fee54484d520deccb8f18bf7d38f3
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