|
43 | 43 | #include <linux/cred.h> |
44 | 44 | #include <linux/mnt_idmapping.h> |
45 | 45 | #include <linux/slab.h> |
| 46 | +#include <linux/rw_hint.h> |
46 | 47 |
|
47 | 48 | #include <asm/byteorder.h> |
48 | 49 | #include <uapi/linux/fs.h> |
@@ -309,19 +310,6 @@ struct address_space; |
309 | 310 | struct writeback_control; |
310 | 311 | struct readahead_control; |
311 | 312 |
|
312 | | -/* |
313 | | - * Write life time hint values. |
314 | | - * Stored in struct inode as u8. |
315 | | - */ |
316 | | -enum rw_hint { |
317 | | - WRITE_LIFE_NOT_SET = 0, |
318 | | - WRITE_LIFE_NONE = RWH_WRITE_LIFE_NONE, |
319 | | - WRITE_LIFE_SHORT = RWH_WRITE_LIFE_SHORT, |
320 | | - WRITE_LIFE_MEDIUM = RWH_WRITE_LIFE_MEDIUM, |
321 | | - WRITE_LIFE_LONG = RWH_WRITE_LIFE_LONG, |
322 | | - WRITE_LIFE_EXTREME = RWH_WRITE_LIFE_EXTREME, |
323 | | -}; |
324 | | - |
325 | 313 | /* Match RWF_* bits to IOCB bits */ |
326 | 314 | #define IOCB_HIPRI (__force int) RWF_HIPRI |
327 | 315 | #define IOCB_DSYNC (__force int) RWF_DSYNC |
@@ -677,7 +665,7 @@ struct inode { |
677 | 665 | spinlock_t i_lock; /* i_blocks, i_bytes, maybe i_size */ |
678 | 666 | unsigned short i_bytes; |
679 | 667 | u8 i_blkbits; |
680 | | - u8 i_write_hint; |
| 668 | + enum rw_hint i_write_hint; |
681 | 669 | blkcnt_t i_blocks; |
682 | 670 |
|
683 | 671 | #ifdef __NEED_I_SIZE_ORDERED |
|
0 commit comments