diff options
author | Steve Kenton <skenton@ou.edu> | 2017-01-02 13:25:34 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-01-03 10:51:45 +0100 |
commit | a17f0cb5b9eaf8212b396d2381cf7594cd5315c7 (patch) | |
tree | 3efd11d2e382707b81d05d3a8b777b1506b7a587 /fs/udf/inode.c | |
parent | 88b50ce3ab5af60c85905784c938a35c967addf4 (diff) | |
download | linux-a17f0cb5b9eaf8212b396d2381cf7594cd5315c7.tar.gz linux-a17f0cb5b9eaf8212b396d2381cf7594cd5315c7.tar.bz2 linux-a17f0cb5b9eaf8212b396d2381cf7594cd5315c7.zip |
fs/udf: make #ifdef UDF_PREALLOCATE unconditional
Signed-off-by: Steve Kenton <skenton@ou.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r-- | fs/udf/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 0f3db71753aa..3a5ac2221a88 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -857,14 +857,12 @@ static sector_t inode_getblk(struct inode *inode, sector_t block, * block */ udf_split_extents(inode, &c, offset, newblocknum, laarr, &endnum); -#ifdef UDF_PREALLOCATE /* We preallocate blocks only for regular files. It also makes sense * for directories but there's a problem when to drop the * preallocation. We might use some delayed work for that but I feel * it's overengineering for a filesystem like UDF. */ if (S_ISREG(inode->i_mode)) udf_prealloc_extents(inode, c, lastblock, laarr, &endnum); -#endif /* merge any continuous blocks in laarr */ udf_merge_extents(inode, laarr, &endnum); |