diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index de4ea1a..3a16fcd 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1976,11 +1976,11 @@ int ocfs2_change_file_space(struct file *file, unsigned int cmd,
 		 !ocfs2_sparse_alloc(osb))
 		return -ENOTTY;
 
-	if (!S_ISREG(inode->i_mode))
-		return -EINVAL;
+	//if (!S_ISREG(inode->i_mode))
+	//	return -EINVAL;
 
-	if (!(file->f_mode & FMODE_WRITE))
-		return -EBADF;
+	//if (!(file->f_mode & FMODE_WRITE))
+	//	return -EBADF;
 
 	return __ocfs2_change_file_space(file, inode, file->f_pos, cmd, sr, 0);
 }
