forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: move struct iomap from exportfs.h to a separate header
Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
- Loading branch information
Showing
5 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef LINUX_IOMAP_H | ||
#define LINUX_IOMAP_H 1 | ||
|
||
#include <linux/types.h> | ||
|
||
/* types of block ranges for multipage write mappings. */ | ||
#define IOMAP_HOLE 0x01 /* no blocks allocated, need allocation */ | ||
#define IOMAP_DELALLOC 0x02 /* delayed allocation blocks */ | ||
#define IOMAP_MAPPED 0x03 /* blocks allocated @blkno */ | ||
#define IOMAP_UNWRITTEN 0x04 /* blocks allocated @blkno in unwritten state */ | ||
|
||
#define IOMAP_NULL_BLOCK -1LL /* blkno is not valid */ | ||
|
||
struct iomap { | ||
sector_t blkno; /* first sector of mapping */ | ||
loff_t offset; /* file offset of mapping, bytes */ | ||
u64 length; /* length of mapping, bytes */ | ||
int type; /* type of mapping */ | ||
}; | ||
|
||
#endif /* LINUX_IOMAP_H */ |