diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 15:59:42 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 15:59:42 -0500 |
| commit | ae9a8c4bdc91202b4236372eed53c54d2297c71b (patch) | |
| tree | 4596680ee808334d246ad2f93bdd743d76c3741a /include/linux/iomap.h | |
| parent | 32190f0afbf4f1c0a9142e5a886a078ee0b794fd (diff) | |
| parent | 232530680290ba94ca37852ab10d9556ea28badf (diff) | |
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
Pull ext4 updates from Ted Ts'o:
- Add support for online resizing of file systems with bigalloc
- Fix a two data corruption bugs involving DAX, as well as a corruption
bug after a crash during a racing fallocate and delayed allocation.
- Finally, a number of cleanups and optimizations.
* tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
ext4: improve smp scalability for inode generation
ext4: add support for online resizing with bigalloc
ext4: mention noload when recovering on read-only device
Documentation: fix little inconsistencies
ext4: convert timers to use timer_setup()
jbd2: convert timers to use timer_setup()
ext4: remove duplicate extended attributes defs
ext4: add ext4_should_use_dax()
ext4: add sanity check for encryption + DAX
ext4: prevent data corruption with journaling + DAX
ext4: prevent data corruption with inline data + DAX
ext4: fix interaction between i_size, fallocate, and delalloc after a crash
ext4: retry allocations conservatively
ext4: Switch to iomap for SEEK_HOLE / SEEK_DATA
ext4: Add iomap support for inline data
iomap: Add IOMAP_F_DATA_INLINE flag
iomap: Switch from blkno to disk offset
Diffstat (limited to 'include/linux/iomap.h')
| -rw-r--r-- | include/linux/iomap.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 8a7c6d26b147..76ce247d3d4b 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h | |||
| @@ -16,8 +16,8 @@ struct vm_fault; | |||
| 16 | */ | 16 | */ |
| 17 | #define IOMAP_HOLE 0x01 /* no blocks allocated, need allocation */ | 17 | #define IOMAP_HOLE 0x01 /* no blocks allocated, need allocation */ |
| 18 | #define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */ | 18 | #define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */ |
| 19 | #define IOMAP_MAPPED 0x03 /* blocks allocated @blkno */ | 19 | #define IOMAP_MAPPED 0x03 /* blocks allocated at @addr */ |
| 20 | #define IOMAP_UNWRITTEN 0x04 /* blocks allocated @blkno in unwritten state */ | 20 | #define IOMAP_UNWRITTEN 0x04 /* blocks allocated at @addr in unwritten state */ |
| 21 | 21 | ||
| 22 | /* | 22 | /* |
| 23 | * Flags for all iomap mappings: | 23 | * Flags for all iomap mappings: |
| @@ -27,16 +27,17 @@ struct vm_fault; | |||
| 27 | /* | 27 | /* |
| 28 | * Flags that only need to be reported for IOMAP_REPORT requests: | 28 | * Flags that only need to be reported for IOMAP_REPORT requests: |
| 29 | */ | 29 | */ |
| 30 | #define IOMAP_F_MERGED 0x10 /* contains multiple blocks/extents */ | 30 | #define IOMAP_F_MERGED 0x10 /* contains multiple blocks/extents */ |
| 31 | #define IOMAP_F_SHARED 0x20 /* block shared with another file */ | 31 | #define IOMAP_F_SHARED 0x20 /* block shared with another file */ |
| 32 | #define IOMAP_F_DATA_INLINE 0x40 /* data inline in the inode */ | ||
| 32 | 33 | ||
| 33 | /* | 34 | /* |
| 34 | * Magic value for blkno: | 35 | * Magic value for addr: |
| 35 | */ | 36 | */ |
| 36 | #define IOMAP_NULL_BLOCK -1LL /* blkno is not valid */ | 37 | #define IOMAP_NULL_ADDR -1ULL /* addr is not valid */ |
| 37 | 38 | ||
| 38 | struct iomap { | 39 | struct iomap { |
| 39 | sector_t blkno; /* 1st sector of mapping, 512b units */ | 40 | u64 addr; /* disk offset of mapping, bytes */ |
| 40 | loff_t offset; /* file offset of mapping, bytes */ | 41 | loff_t offset; /* file offset of mapping, bytes */ |
| 41 | u64 length; /* length of mapping, bytes */ | 42 | u64 length; /* length of mapping, bytes */ |
| 42 | u16 type; /* type of mapping */ | 43 | u16 type; /* type of mapping */ |
