inode.c (71d4f7d032149b935a26eb3ff85c6c837f3714e1) inode.c (4f579ae7de560e5f449587a6c3f02594d53d4d51)
1/*
2 * linux/fs/ext4/inode.c
3 *
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 *

--- 3492 unchanged lines hidden (view full) ---

3501 up_write(&EXT4_I(inode)->i_data_sem);
3502 goto out_stop;
3503 }
3504
3505 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))
3506 ret = ext4_ext_remove_space(inode, first_block,
3507 stop_block - 1);
3508 else
1/*
2 * linux/fs/ext4/inode.c
3 *
4 * Copyright (C) 1992, 1993, 1994, 1995
5 * Remy Card (card@masi.ibp.fr)
6 * Laboratoire MASI - Institut Blaise Pascal
7 * Universite Pierre et Marie Curie (Paris VI)
8 *

--- 3492 unchanged lines hidden (view full) ---

3501 up_write(&EXT4_I(inode)->i_data_sem);
3502 goto out_stop;
3503 }
3504
3505 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))
3506 ret = ext4_ext_remove_space(inode, first_block,
3507 stop_block - 1);
3508 else
3509 ret = ext4_free_hole_blocks(handle, inode, first_block,
3509 ret = ext4_ind_remove_space(handle, inode, first_block,
3510 stop_block);
3511
3512 up_write(&EXT4_I(inode)->i_data_sem);
3513 if (IS_SYNC(inode))
3514 ext4_handle_sync(handle);
3515
3516 /* Now release the pages again to reduce race window */
3517 if (last_block_offset > first_block_offset)

--- 1569 unchanged lines hidden ---
3510 stop_block);
3511
3512 up_write(&EXT4_I(inode)->i_data_sem);
3513 if (IS_SYNC(inode))
3514 ext4_handle_sync(handle);
3515
3516 /* Now release the pages again to reduce race window */
3517 if (last_block_offset > first_block_offset)

--- 1569 unchanged lines hidden ---