diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-10 03:27:11 +0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-02-10 03:27:11 +0400 |
commit | 6039257378e4c84da06e68230b14fef955508ce6 (patch) | |
tree | 87f5681b75c36d4b6d395f92a82ffe7b1b1dde5a /include/linux/fs.h | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-6039257378e4c84da06e68230b14fef955508ce6.tar.xz |
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/fs.h')
-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 { /* filesystem does not support filling holes */ DIO_SKIP_HOLES = 0x02, + + /* filesystem can handle aio writes beyond i_size */ + DIO_ASYNC_EXTEND = 0x04, }; void dio_end_io(struct bio *bio, int error); |