Skip to content

hfsplus: fix b-tree logic issues

Viacheslav Dubeyko linux-fsdevel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hfsplus: fix potential race conditions in b-tree functionalityfs/hfsplus/bnode.c fs/hfsplus/btree.c fs/hfsplus/inode.c +1 more+18 -80 replies
2/5hfsplus: fix error processing issue in hfs_bmap_free()fs/hfsplus/btree.c+9 -50 replies
3/5hfsplus: fix logic of alloc/free b-tree nodefs/hfsplus/btree.c+3 -00 replies
4/5hfsplus: rework logic of map nodes creation in xattr b-treefs/hfsplus/xattr.c include/linux/hfs_common.h+106 -230 replies
5/5hfsplus: fix generic/642 failurefs/hfsplus/brec.c+20 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] hfsplus: fix b-tree logic issues

The generic/642 failure uncovered multiple issues
in b-tree functionality. This patchset fixes potential race conditions in b-tree functionality, error processing issue in hfs_bmap_free(), logic of alloc/free b-tree node. It reworks hfsplus_create_attributes_file() logic by introducing a specialized method of hfsplus_init_map_node() and writing the allocated map b-tree's nodes by means of hfsplus_write_attributes_file_node() method. And this patchset adds calling of hfs_bnode_unlink() before hfs_bnode_put() for the case if new node cannot be used for spliting the existing node.

Viacheslav Dubeyko (5):
hfsplus: fix potential race conditions in b-tree functionality
hfsplus: fix error processing issue in hfs_bmap_free()
hfsplus: fix logic of alloc/free b-tree node
hfsplus: rework logic of map nodes creation in xattr b-tree
hfsplus: fix generic/642 failure

 fs/hfsplus/bnode.c         |   3 +
 fs/hfsplus/brec.c          |  32 ++++++----
 fs/hfsplus/btree.c         |  22 +++++--
 fs/hfsplus/inode.c         |  15 ++---
 fs/hfsplus/super.c         |   3 +
 fs/hfsplus/xattr.c         | 127 ++++++++++++++++++++++++++++++-------
 include/linux/hfs_common.h |   2 +
 7 files changed, 156 insertions(+), 48 deletions(-)
Signature · 1 line
2.43.0