Loading fs/ext4/inode.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -590,7 +590,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode, /* /* * New blocks allocate and/or writing to unwritten extent * New blocks allocate and/or writing to unwritten extent * will possibly result in updating i_data, so we take * will possibly result in updating i_data, so we take * the write lock of i_data_sem, and call get_blocks() * the write lock of i_data_sem, and call get_block() * with create == 1 flag. * with create == 1 flag. */ */ down_write(&EXT4_I(inode)->i_data_sem); down_write(&EXT4_I(inode)->i_data_sem); Loading Loading @@ -1529,7 +1529,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock, } } /* /* * This is a special get_blocks_t callback which is used by * This is a special get_block_t callback which is used by * ext4_da_write_begin(). It will either return mapped block or * ext4_da_write_begin(). It will either return mapped block or * reserve space for a single block. * reserve space for a single block. * * Loading Loading
fs/ext4/inode.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -590,7 +590,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode, /* /* * New blocks allocate and/or writing to unwritten extent * New blocks allocate and/or writing to unwritten extent * will possibly result in updating i_data, so we take * will possibly result in updating i_data, so we take * the write lock of i_data_sem, and call get_blocks() * the write lock of i_data_sem, and call get_block() * with create == 1 flag. * with create == 1 flag. */ */ down_write(&EXT4_I(inode)->i_data_sem); down_write(&EXT4_I(inode)->i_data_sem); Loading Loading @@ -1529,7 +1529,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock, } } /* /* * This is a special get_blocks_t callback which is used by * This is a special get_block_t callback which is used by * ext4_da_write_begin(). It will either return mapped block or * ext4_da_write_begin(). It will either return mapped block or * reserve space for a single block. * reserve space for a single block. * * Loading