mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-27 10:24:31 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user