summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZheng Liu <wenqing.lz@taobao.com>2013-03-10 21:20:23 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-03-10 21:20:23 -0400
commit3a2256702e47f68f921dfad41b1764d05c572329 (patch)
tree977a89ffbb1bd91cc6ebe001c9820a496ea24073 /scripts
parentadb2355104b2109e06ba5276485d187d023b2fd2 (diff)
downloadop-kernel-dev-3a2256702e47f68f921dfad41b1764d05c572329.zip
op-kernel-dev-3a2256702e47f68f921dfad41b1764d05c572329.tar.gz
ext4: fix the wrong number of the allocated blocks in ext4_split_extent()
This commit fixes a wrong return value of the number of the allocated blocks in ext4_split_extent. When the length of blocks we want to allocate is greater than the length of the current extent, we return a wrong number. Let's see what happens in the following case when we call ext4_split_extent(). map: [48, 72] ex: [32, 64, u] 'ex' will be split into two parts: ex1: [32, 47, u] ex2: [48, 64, w] 'map->m_len' is returned from this function, and the value is 24. But the real length is 16. So it should be fixed. Meanwhile in this commit we use right length of the allocated blocks when get_reserved_cluster_alloc in ext4_ext_handle_uninitialized_extents is called. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: Dmitry Monakhov <dmonakhov@openvz.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud