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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 1a86282b9024..ad8e303c0d29 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -2588,7 +2588,7 @@ static void ext4_end_io_buffer_write(struct buffer_head *bh, int uptodate);
2588 * because we should have holes filled from ext4_page_mkwrite(). We even don't 2588 * because we should have holes filled from ext4_page_mkwrite(). We even don't
2589 * need to file the inode to the transaction's list in ordered mode because if 2589 * need to file the inode to the transaction's list in ordered mode because if
2590 * we are writing back data added by write(), the inode is already there and if 2590 * we are writing back data added by write(), the inode is already there and if
2591 * we are writing back data modified via mmap(), noone guarantees in which 2591 * we are writing back data modified via mmap(), no one guarantees in which
2592 * transaction the data will hit the disk. In case we are journaling data, we 2592 * transaction the data will hit the disk. In case we are journaling data, we
2593 * cannot start transaction directly because transaction start ranks above page 2593 * cannot start transaction directly because transaction start ranks above page
2594 * lock so we have to do some magic. 2594 * lock so we have to do some magic.
@@ -2690,7 +2690,7 @@ static int ext4_writepage(struct page *page,
2690 2690
2691/* 2691/*
2692 * This is called via ext4_da_writepages() to 2692 * This is called via ext4_da_writepages() to
2693 * calulate the total number of credits to reserve to fit 2693 * calculate the total number of credits to reserve to fit
2694 * a single extent allocation into a single transaction, 2694 * a single extent allocation into a single transaction,
2695 * ext4_da_writpeages() will loop calling this before 2695 * ext4_da_writpeages() will loop calling this before
2696 * the block allocation. 2696 * the block allocation.
@@ -3304,7 +3304,7 @@ int ext4_alloc_da_blocks(struct inode *inode)
3304 * the pages by calling redirty_page_for_writepage() but that 3304 * the pages by calling redirty_page_for_writepage() but that
3305 * would be ugly in the extreme. So instead we would need to 3305 * would be ugly in the extreme. So instead we would need to
3306 * replicate parts of the code in the above functions, 3306 * replicate parts of the code in the above functions,
3307 * simplifying them becuase we wouldn't actually intend to 3307 * simplifying them because we wouldn't actually intend to
3308 * write out the pages, but rather only collect contiguous 3308 * write out the pages, but rather only collect contiguous
3309 * logical block extents, call the multi-block allocator, and 3309 * logical block extents, call the multi-block allocator, and
3310 * then update the buffer heads with the block allocations. 3310 * then update the buffer heads with the block allocations.
@@ -3694,7 +3694,7 @@ retry:
3694 * 3694 *
3695 * The unwrritten extents will be converted to written when DIO is completed. 3695 * The unwrritten extents will be converted to written when DIO is completed.
3696 * For async direct IO, since the IO may still pending when return, we 3696 * For async direct IO, since the IO may still pending when return, we
3697 * set up an end_io call back function, which will do the convertion 3697 * set up an end_io call back function, which will do the conversion
3698 * when async direct IO completed. 3698 * when async direct IO completed.
3699 * 3699 *
3700 * If the O_DIRECT write will extend the file then add this inode to the 3700 * If the O_DIRECT write will extend the file then add this inode to the
@@ -3717,7 +3717,7 @@ static ssize_t ext4_ext_direct_IO(int rw, struct kiocb *iocb,
3717 * We could direct write to holes and fallocate. 3717 * We could direct write to holes and fallocate.
3718 * 3718 *
3719 * Allocated blocks to fill the hole are marked as uninitialized 3719 * Allocated blocks to fill the hole are marked as uninitialized
3720 * to prevent paralel buffered read to expose the stale data 3720 * to prevent parallel buffered read to expose the stale data
3721 * before DIO complete the data IO. 3721 * before DIO complete the data IO.
3722 * 3722 *
3723 * As to previously fallocated extents, ext4 get_block 3723 * As to previously fallocated extents, ext4 get_block
@@ -3778,7 +3778,7 @@ static ssize_t ext4_ext_direct_IO(int rw, struct kiocb *iocb,
3778 int err; 3778 int err;
3779 /* 3779 /*
3780 * for non AIO case, since the IO is already 3780 * for non AIO case, since the IO is already
3781 * completed, we could do the convertion right here 3781 * completed, we could do the conversion right here
3782 */ 3782 */
3783 err = ext4_convert_unwritten_extents(inode, 3783 err = ext4_convert_unwritten_extents(inode,
3784 offset, ret); 3784 offset, ret);
@@ -4025,7 +4025,7 @@ static inline int all_zeroes(__le32 *p, __le32 *q)
4025 * 4025 *
4026 * When we do truncate() we may have to clean the ends of several 4026 * When we do truncate() we may have to clean the ends of several
4027 * indirect blocks but leave the blocks themselves alive. Block is 4027 * indirect blocks but leave the blocks themselves alive. Block is
4028 * partially truncated if some data below the new i_size is refered 4028 * partially truncated if some data below the new i_size is referred
4029 * from it (and it is on the path to the first completely truncated 4029 * from it (and it is on the path to the first completely truncated
4030 * data block, indeed). We have to free the top of that path along 4030 * data block, indeed). We have to free the top of that path along
4031 * with everything to the right of the path. Since no allocation 4031 * with everything to the right of the path. Since no allocation
@@ -4169,7 +4169,7 @@ out_err:
4169 * @first: array of block numbers 4169 * @first: array of block numbers
4170 * @last: points immediately past the end of array 4170 * @last: points immediately past the end of array
4171 * 4171 *
4172 * We are freeing all blocks refered from that array (numbers are stored as 4172 * We are freeing all blocks referred from that array (numbers are stored as
4173 * little-endian 32-bit) and updating @inode->i_blocks appropriately. 4173 * little-endian 32-bit) and updating @inode->i_blocks appropriately.
4174 * 4174 *
4175 * We accumulate contiguous runs of blocks to free. Conveniently, if these 4175 * We accumulate contiguous runs of blocks to free. Conveniently, if these
@@ -4261,7 +4261,7 @@ static void ext4_free_data(handle_t *handle, struct inode *inode,
4261 * @last: pointer immediately past the end of array 4261 * @last: pointer immediately past the end of array
4262 * @depth: depth of the branches to free 4262 * @depth: depth of the branches to free
4263 * 4263 *
4264 * We are freeing all blocks refered from these branches (numbers are 4264 * We are freeing all blocks referred from these branches (numbers are
4265 * stored as little-endian 32-bit) and updating @inode->i_blocks 4265 * stored as little-endian 32-bit) and updating @inode->i_blocks
4266 * appropriately. 4266 * appropriately.
4267 */ 4267 */
@@ -5478,7 +5478,7 @@ static int ext4_meta_trans_blocks(struct inode *inode, int nrblocks, int chunk)
5478} 5478}
5479 5479
5480/* 5480/*
5481 * Calulate the total number of credits to reserve to fit 5481 * Calculate the total number of credits to reserve to fit
5482 * the modification of a single pages into a single transaction, 5482 * the modification of a single pages into a single transaction,
5483 * which may include multiple chunks of block allocations. 5483 * which may include multiple chunks of block allocations.
5484 * 5484 *