|
@@ -5398,12 +5398,6 @@ int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
|
|
/* Take mutex lock */
|
|
/* Take mutex lock */
|
|
mutex_lock(&inode->i_mutex);
|
|
mutex_lock(&inode->i_mutex);
|
|
|
|
|
|
- /* It's not possible punch hole on append only file */
|
|
|
|
- if (IS_APPEND(inode) || IS_IMMUTABLE(inode)) {
|
|
|
|
- ret = -EPERM;
|
|
|
|
- goto out_mutex;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (IS_SWAPFILE(inode)) {
|
|
if (IS_SWAPFILE(inode)) {
|
|
ret = -ETXTBSY;
|
|
ret = -ETXTBSY;
|
|
goto out_mutex;
|
|
goto out_mutex;
|