[PATCH v2 0/4] ext2: fix race between setxattr and write back

From: Ye Bin
Date: Tue Aug 15 2023 - 07:30:35 EST


Diff v2 vs v1:
1. Do not use reservation window when allocate block for xattr.
2. Remove BUG() in ext2_try_to_allocate_with_rsv().

Ye Bin (4):
ext2: remove ext2_new_block()
ext2: introduce flag argument for ext2_new_blocks()
ext2: fix race between setxattr and write back
ext2: dump current reservation window info

fs/ext2/balloc.c | 32 +++++++++++++++++---------------
fs/ext2/ext2.h | 8 ++++++--
fs/ext2/inode.c | 2 +-
fs/ext2/xattr.c | 4 +++-
4 files changed, 27 insertions(+), 19 deletions(-)

--
2.31.1