Skip to content
Snippets Groups Projects
Commit 325dd1f6 authored by Qu Wenruo's avatar Qu Wenruo Committed by Tom Rini
Browse files

fs: btrfs: Use btrfs_iter_dir() to replace btrfs_readdir()


Use extent buffer based infrastructure to re-implement btrfs_readdir().

Along this rework, some small corner cases fixed:
- Subvolume tree mtime
  Mtime of a subvolume tree is recorded in its root item, since there is
  no INODE_ITEM for it.
  This needs extra search from tree root.

- Output the unknown type
  If the DIR_ITEM is corrupted, at least don't try to access the memory
  out of boundary.

Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarMarek Behún <marek.behun@nic.cz>
parent c921aa20
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment