[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230818165540.GC3515079@mit.edu>
Date: Fri, 18 Aug 2023 12:55:40 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Fengnan Chang <changfengnan@...edance.com>
Cc: adilger.kernel@...ger.ca, guoqing.jiang@...ux.dev,
linux-ext4@...r.kernel.org,
kernel test robot <oliver.sang@...el.com>
Subject: Re: [External] Re: [PATCH v3] ext4: improve trim efficiency
On Fri, Aug 18, 2023 at 03:14:34PM +0800, Fengnan Chang wrote:
> If we move the allocation and initialization the ext4_free_data
> structure to ext4_try_to_trim_range, we need move
> ext4_lock_group too, because we can't do alloc memory when
> hold lock in ioctl context.
> How about just remove ext4_trim_extent, and do all work in
> ext4_try_to_trim_range? it will be easier to read.
Yes, agreed.
- Ted
Powered by blists - more mailing lists