]> git.itanic.dy.fi Git - linux-stable/commit
f2fs: remove entire rb_entry sharing
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Mar 2023 19:49:57 +0000 (11:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 12:01:59 +0000 (14:01 +0200)
commitd184a33884c81b6adca6e4042447e3ab01db5d6b
tree12a576d7b30de6e1685da18c31626acacfd48c29
parent6d04f277d01d9e46d61e39d9c4d56631bafea86f
f2fs: remove entire rb_entry sharing

commit bf21acf9959a48d90dd32869a0649525eb21be56 upstream.

This is a last part to remove the memory sharing for rb_tree in extent_cache.

This should also fix arm32 memory alignment issue.

[struct extent_node]               [struct rb_entry]
[0] struct rb_node rb_node;        [0] struct rb_node rb_node;
  union {                              union {
    struct {                             struct {
[16]  unsigned int fofs;           [12]    unsigned int ofs;
      unsigned int len;                    unsigned int len;
                                         };
                                         unsigned long long key;
                                       } __packed;

Cc: <stable@vger.kernel.org>
Fixes: 13054c548a1c ("f2fs: introduce infra macro and data structure of rb-tree extent cache")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/extent_cache.c
fs/f2fs/f2fs.h