public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] ext4: fix WARNING in ext4_da_update_reserve_space
@ 2023-04-12 12:41 Baokun Li
  2023-04-12 12:41 ` [PATCH v3 1/8] ext4: only update i_reserved_data_blocks on successful block allocation Baokun Li
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Baokun Li @ 2023-04-12 12:41 UTC (permalink / raw)
  To: linux-ext4
  Cc: tytso, adilger.kernel, jack, ritesh.list, linux-kernel, yi.zhang,
	yangerkun, yukuai3, libaokun1

V1->V2:
	Modify the patch 1 description and add the Fixes tag.
	Add the patch 2 as suggested by Jan Kara.
V2->V3:
	Remove the redundant judgment of count in Patch [1].
	Rename ext4_es_alloc_should_nofail to ext4_es_must_keep.
	Split Patch [2].
	Make some functions return void to simplify the code.

This patch set consists of three parts:
1. Patch [1] fix WARNING in ext4_da_update_reserve_space.
2. Patch [2][3] fix extent tree inconsistencies that may be caused
   by memory allocation failures.
3. Patch [4]-[8] is cleanup.

Baokun Li (8):
  ext4: only update i_reserved_data_blocks on successful block
    allocation
  ext4: add a new helper to check if es must be kept
  ext4: use __GFP_NOFAIL if allocating extents_status cannot fail
  ext4: make __es_remove_extent return void
  ext4: make ext4_es_remove_extent return void
  ext4: make ext4_es_insert_delayed_block return void
  ext4: make ext4_es_insert_extent return void
  ext4: make ext4_zeroout_es return void

 fs/ext4/extents.c        |  49 ++++-----------
 fs/ext4/extents_status.c | 127 +++++++++++++++++----------------------
 fs/ext4/extents_status.h |  14 ++---
 fs/ext4/indirect.c       |   8 +++
 fs/ext4/inline.c         |  12 +---
 fs/ext4/inode.c          |  46 +++-----------
 6 files changed, 96 insertions(+), 160 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-04-24  3:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 12:41 [PATCH v3 0/8] ext4: fix WARNING in ext4_da_update_reserve_space Baokun Li
2023-04-12 12:41 ` [PATCH v3 1/8] ext4: only update i_reserved_data_blocks on successful block allocation Baokun Li
2023-04-12 18:45   ` Jan Kara
2023-04-12 12:41 ` [PATCH v3 2/8] ext4: add a new helper to check if es must be kept Baokun Li
2023-04-12 18:53   ` Jan Kara
2023-04-13  2:00     ` Baokun Li
2023-04-13 10:34       ` Jan Kara
2023-04-13 12:26         ` Baokun Li
2023-04-12 12:41 ` [PATCH v3 3/8] ext4: use __GFP_NOFAIL if allocating extents_status cannot fail Baokun Li
2023-04-13 10:30   ` Jan Kara
2023-04-24  3:45     ` Baokun Li
2023-04-12 12:41 ` [PATCH v3 4/8] ext4: make __es_remove_extent return void Baokun Li
2023-04-12 12:41 ` [PATCH v3 5/8] ext4: make ext4_es_remove_extent " Baokun Li
2023-04-12 12:41 ` [PATCH v3 6/8] ext4: make ext4_es_insert_delayed_block " Baokun Li
2023-04-12 14:19   ` kernel test robot
2023-04-13  2:36     ` Baokun Li
2023-04-12 17:24   ` kernel test robot
2023-04-12 12:41 ` [PATCH v3 7/8] ext4: make ext4_es_insert_extent " Baokun Li
2023-04-12 12:41 ` [PATCH v3 8/8] ext4: make ext4_zeroout_es " Baokun Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox