[PATCH v3] fs: clean up usage of noop_dirty_folio

2023-08-28 Thread Xueshi Hu
r with either of those, we can remove them completely. Acked-by: Al Viro Reviewed-by: Jan Kara Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig Signed-off-by: Xueshi Hu --- Changes in v3: - correct the rationale of removal three empty aops - v2: https://lore.kernel.org/li

[PATCH v2] 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. As anon_aops, dev_dax_aops and fb_deferred_io_aops becames empty, remove them too. Signed-off-by: Xueshi Hu --- Changes in v2: - make noop_dirty_folio() inline as suggested

[PATCH] fs: clean up usage of noop_dirty_folio

2023-08-19 Thread Xueshi Hu
In folio_mark_dirty(), it will automatically fallback to noop_dirty_folio() if a_ops->dirty_folio is not registered. As anon_aops, dev_dax_aops and fb_deferred_io_aops becames empty, remove them too. Signed-off-by: Xueshi Hu --- drivers/dax/device.c| 5 - drivers/vi