diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-11-24 19:43:30 +0900 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2023-01-23 09:25:51 +0900 |
commit | 34422914dc00b291d1c47dbdabe93b154c2f2b25 (patch) | |
tree | cfdee6d1827c4ae351743d38e4086457958fd96b /fs/zonefs/trace.h | |
parent | 46a9c526eef7fb68a00321e2a9591ce5276ae92b (diff) | |
download | linux-stable-34422914dc00b291d1c47dbdabe93b154c2f2b25.tar.gz linux-stable-34422914dc00b291d1c47dbdabe93b154c2f2b25.tar.bz2 linux-stable-34422914dc00b291d1c47dbdabe93b154c2f2b25.zip |
zonefs: Reduce struct zonefs_inode_info size
Instead of using the i_ztype field in struct zonefs_inode_info to
indicate the zone type of an inode, introduce the new inode flag
ZONEFS_ZONE_CNV to be set in the i_flags field of struct
zonefs_inode_info to identify conventional zones. If this flag is not
set, the zone of an inode is considered to be a sequential zone.
The helpers zonefs_zone_is_cnv(), zonefs_zone_is_seq(),
zonefs_inode_is_cnv() and zonefs_inode_is_seq() are introduced to
simplify testing the zone type of a struct zonefs_inode_info and of a
struct inode.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Diffstat (limited to 'fs/zonefs/trace.h')
0 files changed, 0 insertions, 0 deletions