Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86c65513 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE"

parents 180389d1 a3b7f8c3
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -4223,6 +4223,7 @@ int ext4_update_disksize_before_punch(struct inode *inode, loff_t offset,


int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
{
{
#if 0
	struct super_block *sb = inode->i_sb;
	struct super_block *sb = inode->i_sb;
	ext4_lblk_t first_block, stop_block;
	ext4_lblk_t first_block, stop_block;
	struct address_space *mapping = inode->i_mapping;
	struct address_space *mapping = inode->i_mapping;
@@ -4353,6 +4354,12 @@ int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
out_mutex:
out_mutex:
	inode_unlock(inode);
	inode_unlock(inode);
	return ret;
	return ret;
#else
	/*
	 * Disabled as per b/28760453
	 */
	return -EOPNOTSUPP;
#endif
}
}


int ext4_inode_attach_jinode(struct inode *inode)
int ext4_inode_attach_jinode(struct inode *inode)