aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 574c6dda95d8..2bdbfcb48732 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -443,7 +443,7 @@ static void ext4_map_blocks_es_recheck(handle_t *handle,
443 * could be converted. 443 * could be converted.
444 */ 444 */
445 if (!(flags & EXT4_GET_BLOCKS_NO_LOCK)) 445 if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
446 down_read((&EXT4_I(inode)->i_data_sem)); 446 down_read(&EXT4_I(inode)->i_data_sem);
447 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) { 447 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
448 retval = ext4_ext_map_blocks(handle, inode, map, flags & 448 retval = ext4_ext_map_blocks(handle, inode, map, flags &
449 EXT4_GET_BLOCKS_KEEP_SIZE); 449 EXT4_GET_BLOCKS_KEEP_SIZE);
@@ -555,7 +555,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode,
555 * file system block. 555 * file system block.
556 */ 556 */
557 if (!(flags & EXT4_GET_BLOCKS_NO_LOCK)) 557 if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
558 down_read((&EXT4_I(inode)->i_data_sem)); 558 down_read(&EXT4_I(inode)->i_data_sem);
559 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) { 559 if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
560 retval = ext4_ext_map_blocks(handle, inode, map, flags & 560 retval = ext4_ext_map_blocks(handle, inode, map, flags &
561 EXT4_GET_BLOCKS_KEEP_SIZE); 561 EXT4_GET_BLOCKS_KEEP_SIZE);
@@ -627,7 +627,7 @@ found:
627 * the write lock of i_data_sem, and call get_blocks() 627 * the write lock of i_data_sem, and call get_blocks()
628 * with create == 1 flag. 628 * with create == 1 flag.
629 */ 629 */
630 down_write((&EXT4_I(inode)->i_data_sem)); 630 down_write(&EXT4_I(inode)->i_data_sem);
631 631
632 /* 632 /*
633 * if the caller is from delayed allocation writeout path 633 * 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,
1540 ext4_es_lru_add(inode); 1540 ext4_es_lru_add(inode);
1541 if (ext4_es_is_hole(&es)) { 1541 if (ext4_es_is_hole(&es)) {
1542 retval = 0; 1542 retval = 0;
1543 down_read((&EXT4_I(inode)->i_data_sem)); 1543 down_read(&EXT4_I(inode)->i_data_sem);
1544 goto add_delayed; 1544 goto add_delayed;
1545 } 1545 }
1546 1546
@@ -1577,7 +1577,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
1577 * Try to see if we can get the block without requesting a new 1577 * Try to see if we can get the block without requesting a new
1578 * file system block. 1578 * file system block.
1579 */ 1579 */
1580 down_read((&EXT4_I(inode)->i_data_sem)); 1580 down_read(&EXT4_I(inode)->i_data_sem);
1581 if (ext4_has_inline_data(inode)) { 1581 if (ext4_has_inline_data(inode)) {
1582 /* 1582 /*
1583 * We will soon create blocks for this page, and let 1583 * We will soon create blocks for this page, and let