diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-27 21:38:34 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-27 21:38:34 -0700 |
commit | 37aa48368f2508defb1976be62e1ed6ca4dde683 (patch) | |
tree | 59b606c740ddd10259fbf2248bb50498a319fa6d /fs/ext4/ext4.h | |
parent | 1da4f83c0c43f25baf356c4cc719255877da6b1e (diff) | |
parent | d1db0eea852497762cab43b905b879dfcd3b8987 (diff) | |
download | op-kernel-dev-37aa48368f2508defb1976be62e1ed6ca4dde683.zip op-kernel-dev-37aa48368f2508defb1976be62e1ed6ca4dde683.tar.gz |
Merge 3.15-rc3 into staging-next
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index f1c65dc..66946aa 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2466,23 +2466,6 @@ static inline void ext4_update_i_disksize(struct inode *inode, loff_t newsize) up_write(&EXT4_I(inode)->i_data_sem); } -/* - * Update i_disksize after writeback has been started. Races with truncate - * are avoided by checking i_size under i_data_sem. - */ -static inline void ext4_wb_update_i_disksize(struct inode *inode, loff_t newsize) -{ - loff_t i_size; - - down_write(&EXT4_I(inode)->i_data_sem); - i_size = i_size_read(inode); - if (newsize > i_size) - newsize = i_size; - if (newsize > EXT4_I(inode)->i_disksize) - EXT4_I(inode)->i_disksize = newsize; - up_write(&EXT4_I(inode)->i_data_sem); -} - struct ext4_group_info { unsigned long bb_state; struct rb_root bb_free_root; |