|
@@ -443,7 +443,7 @@ static void ext4_map_blocks_es_recheck(handle_t *handle,
|
|
* could be converted.
|
|
* could be converted.
|
|
*/
|
|
*/
|
|
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
|
|
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
|
|
- down_read((&EXT4_I(inode)->i_data_sem));
|
|
|
|
|
|
+ down_read(&EXT4_I(inode)->i_data_sem);
|
|
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
|
|
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
|
|
retval = ext4_ext_map_blocks(handle, inode, map, flags &
|
|
retval = ext4_ext_map_blocks(handle, inode, map, flags &
|
|
EXT4_GET_BLOCKS_KEEP_SIZE);
|
|
EXT4_GET_BLOCKS_KEEP_SIZE);
|
|
@@ -555,7 +555,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode,
|
|
* file system block.
|
|
* file system block.
|
|
*/
|
|
*/
|
|
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
|
|
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
|
|
- down_read((&EXT4_I(inode)->i_data_sem));
|
|
|
|
|
|
+ down_read(&EXT4_I(inode)->i_data_sem);
|
|
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
|
|
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
|
|
retval = ext4_ext_map_blocks(handle, inode, map, flags &
|
|
retval = ext4_ext_map_blocks(handle, inode, map, flags &
|
|
EXT4_GET_BLOCKS_KEEP_SIZE);
|
|
EXT4_GET_BLOCKS_KEEP_SIZE);
|
|
@@ -627,7 +627,7 @@ found:
|
|
* the write lock of i_data_sem, and call get_blocks()
|
|
* the write lock of i_data_sem, and call get_blocks()
|
|
* with create == 1 flag.
|
|
* with create == 1 flag.
|
|
*/
|
|
*/
|
|
- down_write((&EXT4_I(inode)->i_data_sem));
|
|
|
|
|
|
+ down_write(&EXT4_I(inode)->i_data_sem);
|
|
|
|
|
|
/*
|
|
/*
|
|
* if the caller is from delayed allocation writeout path
|
|
* if the caller is from delayed allocation writeout path
|
|
@@ -1540,7 +1540,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
|
|
ext4_es_lru_add(inode);
|
|
ext4_es_lru_add(inode);
|
|
if (ext4_es_is_hole(&es)) {
|
|
if (ext4_es_is_hole(&es)) {
|
|
retval = 0;
|
|
retval = 0;
|
|
- down_read((&EXT4_I(inode)->i_data_sem));
|
|
|
|
|
|
+ down_read(&EXT4_I(inode)->i_data_sem);
|
|
goto add_delayed;
|
|
goto add_delayed;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1577,7 +1577,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
|
|
* Try to see if we can get the block without requesting a new
|
|
* Try to see if we can get the block without requesting a new
|
|
* file system block.
|
|
* file system block.
|
|
*/
|
|
*/
|
|
- down_read((&EXT4_I(inode)->i_data_sem));
|
|
|
|
|
|
+ down_read(&EXT4_I(inode)->i_data_sem);
|
|
if (ext4_has_inline_data(inode)) {
|
|
if (ext4_has_inline_data(inode)) {
|
|
/*
|
|
/*
|
|
* We will soon create blocks for this page, and let
|
|
* We will soon create blocks for this page, and let
|