/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/fs/ext4/truncate.h * * Common inline functions needed for truncate support */ /* * Truncate blocks that were not used by write. We have to truncate the * pagecache as well so that corresponding buffers get properly unmapped. */
static inline void ext4_truncate_failed_write(struct inode *inode) { down_write(&EXT4_I(inode)->i_mmap_sem); truncate_inode_pages(inode->i_mapping, inode->i_size); ext4_truncate(inode); up_write(&EXT4_I(inode)->i_mmap_sem); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Theodore Y. Ts'o | 28 | 56.00% | 1 | 50.00% |
Jan Kara | 22 | 44.00% | 1 | 50.00% |
Total | 50 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Theodore Y. Ts'o | 64 | 100.00% | 1 | 100.00% |
Total | 64 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Theodore Y. Ts'o | 95 | 80.51% | 1 | 33.33% |
Jan Kara | 22 | 18.64% | 1 | 33.33% |
Greg Kroah-Hartman | 1 | 0.85% | 1 | 33.33% |
Total | 118 | 100.00% | 3 | 100.00% |