Christoph Hellwig e58ac1770d xfs: refactor dir format helpers
Add a new enum and a xfs_dir2_format helper that returns it to allow
the code to switch on the format of a directory in a single operation
and switch all helpers of xfs_dir2_isblock and xfs_dir2_isleaf to it.

This also removes the explicit xfs_iread_extents call in a few of the
call sites given that xfs_bmap_last_offset already takes care of it
underneath.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
2024-04-26 11:21:46 +05:30
..
2023-12-15 10:03:32 -08:00
2024-04-15 14:58:53 -07:00
2023-05-26 13:52:19 -07:00
2024-04-26 11:21:46 +05:30
2024-02-22 12:40:51 -08:00
2024-02-22 12:43:38 -08:00
2024-02-22 12:43:38 -08:00
2023-12-15 10:03:40 -08:00
2023-12-15 10:03:45 -08:00
2023-12-15 10:03:45 -08:00
2023-12-15 10:03:45 -08:00
2024-04-26 11:21:46 +05:30
2024-04-23 07:47:02 -07:00
2024-04-22 18:00:47 +05:30
2024-02-22 12:43:38 -08:00
2024-04-15 14:58:58 -07:00
2024-04-15 14:58:55 -07:00
2024-04-15 14:58:53 -07:00
2024-04-15 14:58:55 -07:00
2024-04-15 14:58:53 -07:00
2024-04-23 16:55:18 -07:00