diff options
| author | Christoph Hellwig <hch@infradead.org> | 2014-02-09 18:27:11 -0500 |
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2014-02-09 18:27:11 -0500 |
| commit | 6039257378e4c84da06e68230b14fef955508ce6 (patch) | |
| tree | 87f5681b75c36d4b6d395f92a82ffe7b1b1dde5a /include/linux | |
| parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
direct-io: add flag to allow aio writes beyond i_size
Some filesystems can handle direct I/O writes beyond i_size safely,
so allow them to opt into receiving them.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 09f553c59813..f7faefcf4843 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -2527,6 +2527,9 @@ enum { | |||
| 2527 | 2527 | ||
| 2528 | /* filesystem does not support filling holes */ | 2528 | /* filesystem does not support filling holes */ |
| 2529 | DIO_SKIP_HOLES = 0x02, | 2529 | DIO_SKIP_HOLES = 0x02, |
| 2530 | |||
| 2531 | /* filesystem can handle aio writes beyond i_size */ | ||
| 2532 | DIO_ASYNC_EXTEND = 0x04, | ||
| 2530 | }; | 2533 | }; |
| 2531 | 2534 | ||
| 2532 | void dio_end_io(struct bio *bio, int error); | 2535 | void dio_end_io(struct bio *bio, int error); |
