Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit ecd50729 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Dave Chinner
Browse files

iomap: add IOMAP_F_NEW flag

parent 51446f5b
Branches
No related tags found
No related merge requests found
...@@ -1000,6 +1000,7 @@ xfs_file_iomap_begin( ...@@ -1000,6 +1000,7 @@ xfs_file_iomap_begin(
if (error) if (error)
return error; return error;
iomap->flags = IOMAP_F_NEW;
trace_xfs_iomap_alloc(ip, offset, length, 0, &imap); trace_xfs_iomap_alloc(ip, offset, length, 0, &imap);
} else { } else {
ASSERT(nimaps); ASSERT(nimaps);
......
...@@ -22,6 +22,7 @@ struct vm_fault; ...@@ -22,6 +22,7 @@ struct vm_fault;
* Flags for iomap mappings: * Flags for iomap mappings:
*/ */
#define IOMAP_F_MERGED 0x01 /* contains multiple blocks/extents */ #define IOMAP_F_MERGED 0x01 /* contains multiple blocks/extents */
#define IOMAP_F_NEW 0x02 /* blocks have been newly allocated */
/* /*
* Magic value for blkno: * Magic value for blkno:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment