diff options
author | Amit Arora <aarora@in.ibm.com> | 2007-07-17 21:42:41 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-07-17 21:42:41 -0400 |
commit | a2df2a63407803a833f82e1fa6693826c8c9d584 (patch) | |
tree | db761e8d82dbbe53e166511a9f8af9162541a212 /fs/ext4/file.c | |
parent | 97ac73506c0ba93f30239bb57b4cfc5d73e68a62 (diff) | |
download | linux-a2df2a63407803a833f82e1fa6693826c8c9d584.tar.gz linux-a2df2a63407803a833f82e1fa6693826c8c9d584.tar.bz2 linux-a2df2a63407803a833f82e1fa6693826c8c9d584.zip |
fallocate support in ext4
This patch implements ->fallocate() inode operation in ext4. With this
patch users of ext4 file systems will be able to use fallocate() system
call for persistent preallocation. Current implementation only supports
preallocation for regular files (directories not supported as of date)
with extent maps. This patch does not support block-mapped files currently.
Only FALLOC_ALLOCATE and FALLOC_RESV_SPACE modes are being supported as of
now.
Signed-off-by: Amit Arora <aarora@in.ibm.com>
Diffstat (limited to 'fs/ext4/file.c')
-rw-r--r-- | fs/ext4/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index d4c8186aed64..1a81cd66d63b 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -134,5 +134,6 @@ const struct inode_operations ext4_file_inode_operations = { .removexattr = generic_removexattr, #endif .permission = ext4_permission, + .fallocate = ext4_fallocate, }; |