summaryrefslogtreecommitdiff
path: root/fs/jfs/namei.c
diff options
context:
space:
mode:
authorAkira Fujita <a-fujita@rs.jp.nec.com>2010-03-04 05:31:06 (GMT)
committerTheodore Ts'o <tytso@mit.edu>2010-03-04 05:31:06 (GMT)
commit5fd5249aa36fad98c9fd5edced352939e54f9324 (patch)
treeee8add19d98cc2fc47133b3346b5e55ecc68478e /fs/jfs/namei.c
parent731eb1a03a8445cde2cb23ecfb3580c6fa7bb690 (diff)
downloadlinux-5fd5249aa36fad98c9fd5edced352939e54f9324.tar.xz
ext4: Fix insertion point of extent in mext_insert_across_blocks()
If the leaf node has 2 extent space or fewer and EXT4_IOC_MOVE_EXT ioctl is called with the file offset where after the 2nd extent covers, mext_insert_across_blocks() always tries to insert extent into the first extent. As a result, the file gets corrupted because of wrong extent order. The patch fixes this problem. Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/jfs/namei.c')
0 files changed, 0 insertions, 0 deletions