Re: [PATCH v3] fs: clean up usage of noop_dirty_folio

2023-08-29 Thread Christian Brauner
On Tue, 29 Aug 2023 12:00:29 +0800, Xueshi Hu wrote: > In folio_mark_dirty(), it can automatically fallback to > noop_dirty_folio() if a_ops->dirty_folio is not registered. > > In anon_aops, dev_dax_aops and fb_deferred_io_aops, replacing .dirty_folio > with NULL makes them identical to default

[PATCH v3] fs: clean up usage of noop_dirty_folio

2023-08-28 Thread Xueshi Hu
In folio_mark_dirty(), it can automatically fallback to noop_dirty_folio() if a_ops->dirty_folio is not registered. In anon_aops, dev_dax_aops and fb_deferred_io_aops, replacing .dirty_folio with NULL makes them identical to default (empty_aops) and since we never compare ->a_ops pointer with