summaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2011-09-09 18:36:51 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-09-09 18:36:51 -0400
commitbab08ab9646288f1b0b72a7aaeecdff94bd62c18 (patch)
treee301377f1ce9093a44b2cfb331439e15d79789ed /fs/ext4/inode.c
parent281b59959707dfae03ce038cdf231bf4904e170c (diff)
downloadblackbird-op-linux-bab08ab9646288f1b0b72a7aaeecdff94bd62c18.tar.gz
blackbird-op-linux-bab08ab9646288f1b0b72a7aaeecdff94bd62c18.zip
ext4: enforce bigalloc restrictions (e.g., no online resizing, etc.)
At least initially if the bigalloc feature is enabled, we will not support non-extent mapped inodes, online resizing, online defrag, or the FITRIM ioctl. This simplifies the initial implementation. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 6ecc93979e48..904a9a623dab 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3358,6 +3358,11 @@ int ext4_punch_hole(struct file *file, loff_t offset, loff_t length)
return -ENOTSUPP;
}
+ if (EXT4_SB(inode->i_sb)->s_cluster_ratio > 1) {
+ /* TODO: Add support for bigalloc file systems */
+ return -ENOTSUPP;
+ }
+
return ext4_ext_punch_hole(file, offset, length);
}
OpenPOWER on IntegriCloud