Skip to content

Commit 94deac9

Browse files
yhrcmaiolino
authored andcommitted
fs: add an enum for number of life time hints
Add WRITE_LIFE_HINT_NR into the rw_hint enum to define the number of values write life time hints can be set to. This is useful for e.g. file systems which may want to map these values to allocation groups. Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent e747883 commit 94deac9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/linux/rw_hint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ enum rw_hint {
1414
WRITE_LIFE_MEDIUM = RWH_WRITE_LIFE_MEDIUM,
1515
WRITE_LIFE_LONG = RWH_WRITE_LIFE_LONG,
1616
WRITE_LIFE_EXTREME = RWH_WRITE_LIFE_EXTREME,
17+
WRITE_LIFE_HINT_NR,
1718
} __packed;
1819

1920
/* Sparse ignores __packed annotations on enums, hence the #ifndef below. */

0 commit comments

Comments
 (0)