diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2016-07-18 12:45:17 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-10-13 19:39:11 +0200 |
commit | 4c29b21af18965429e8a65b46a029a13b3f31c1d (patch) | |
tree | 8e180740bf8ddf54858da6d749e29caf739b3335 /fs | |
parent | dc6c1bd56ebe8f4197120399a6e0227507d169b4 (diff) | |
download | kernel_samsung_espresso10-4c29b21af18965429e8a65b46a029a13b3f31c1d.zip kernel_samsung_espresso10-4c29b21af18965429e8a65b46a029a13b3f31c1d.tar.gz kernel_samsung_espresso10-4c29b21af18965429e8a65b46a029a13b3f31c1d.tar.bz2 |
fs: ext4: disable support for fallocate FALLOC_FL_PUNCH_HOLE
Bug: 28760453
Change-Id: I019c2de559db9e4b95860ab852211b456d78c4ca
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 4c01932..caf5056 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -4475,6 +4475,7 @@ int ext4_can_truncate(struct inode *inode) int ext4_punch_hole(struct file *file, loff_t offset, loff_t length) { +#if 0 struct inode *inode = file->f_path.dentry->d_inode; if (!S_ISREG(inode->i_mode)) return -ENOTSUPP; @@ -4485,6 +4486,12 @@ int ext4_punch_hole(struct file *file, loff_t offset, loff_t length) } return ext4_ext_punch_hole(file, offset, length); +#else + /* + * Disabled as per b/28760453 + */ + return -EOPNOTSUPP; +#endif } /* |