scoutfs: use extents for file data

We're very basic here at this stage and simply put a single-block extent
item where we would have previously had a multi-block bmap item.
Multi-block extents will come in future patches.

Signed-off-by: Mark Fasheh <mfasheh@versity.com>
Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Mark Fasheh
2016-11-16 14:45:08 -08:00
committed by Zach Brown
parent f1b29c8372
commit 467801de73
6 changed files with 74 additions and 123 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ static int __delete_inode(struct super_block *sb, struct scoutfs_key *key,
if (S_ISLNK(mode))
ret = scoutfs_symlink_drop(sb, ino);
else if (S_ISREG(mode))
ret = scoutfs_truncate_block_items(sb, ino, 0);
ret = scoutfs_truncate_extent_items(sb, ino, 0);
if (ret)
goto out;