[Vivid][PATCH 1/2] Revert "UBUNTU: SAUCE: ext4: disable ext4_punch_hole for indirect filesystems"

Chris J Arges chris.j.arges at canonical.com
Tue Mar 31 20:58:52 UTC 2015


BugLink: http://bugs.launchpad.net/bugs/1292234

This reverts commit cd9b10ffed4b7a9a41688ae021d1637f1058344b.
---
 fs/ext4/inode.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index c5d09b5..5653fa4 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3367,10 +3367,6 @@ int ext4_punch_hole(struct inode *inode, loff_t offset, loff_t length)
 	unsigned int credits;
 	int ret = 0;
 
-	/* WORKAROUND: EXTENTS required (LP: #1292234) */
-	if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)))
-		return -EOPNOTSUPP;
-
 	if (!S_ISREG(inode->i_mode))
 		return -EOPNOTSUPP;
 
-- 
1.9.1





More information about the kernel-team mailing list