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

Commit 6edd17d1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8de5d9d4 e3c7fedd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3408,6 +3408,7 @@ int ext4_can_truncate(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;
@@ -3531,6 +3532,12 @@ out_dio:
out_mutex:
	mutex_unlock(&inode->i_mutex);
	return ret;
#else
	/*
	 * Disabled as per b/28760453
	 */
	return -EOPNOTSUPP;
#endif
}

int ext4_inode_attach_jinode(struct inode *inode)