projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext4: disable COLLAPSE_RANGE for bigalloc
[linux-2.6-microblaze.git]
/
fs
/
ext4
/
extents.c
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index
d6bca2a
..
01b0c20
100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-5406,6
+5406,9
@@
int ext4_collapse_range(struct inode *inode, loff_t offset, loff_t len)
if (!S_ISREG(inode->i_mode))
return -EINVAL;
+ if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1)
+ return -EOPNOTSUPP;
+
trace_ext4_collapse_range(inode, offset, len);
punch_start = offset >> EXT4_BLOCK_SIZE_BITS(sb);