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

Commit d530e1ef 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 d9d6a474 d11b33d5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4295,6 +4295,7 @@ int ext4_break_layouts(struct inode *inode)

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

int ext4_inode_attach_jinode(struct inode *inode)