]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove code duplication in ext4_get_block_write_nolock()
authorAnatol Pomozov <anatol.pomozov@gmail.com>
Thu, 8 Nov 2012 20:07:16 +0000 (15:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 20:07:16 +0000 (15:07 -0500)
commit3c3ec97da659823ebfa9306ed38b62abcece22cf
tree6cc2fff4f731b93103184d3ef858b8a0f48310c6
parent605c64a884e1364d2c3cabb307f4316edce9d523
ext4: remove code duplication in ext4_get_block_write_nolock()

de8c789ffcc5725 introduced function ext4_get_block_write_nolock() that
is very similar to _ext4_get_block(). Eliminate code duplication
by passing different flags to _ext4_get_block()

Tested: xfs tests

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c