diff options
author | 2014-02-10 10:27:11 +1100 | |
---|---|---|
committer | 2014-02-10 10:27:11 +1100 | |
commit | 6039257378e4c84da06e68230b14fef955508ce6 (patch) | |
tree | 87f5681b75c36d4b6d395f92a82ffe7b1b1dde5a /include/linux/fs.h | |
parent | Linus 3.14-rc1 (diff) | |
download | linux-6039257378e4c84da06e68230b14fef955508ce6.tar.gz linux-6039257378e4c84da06e68230b14fef955508ce6.tar.bz2 linux-6039257378e4c84da06e68230b14fef955508ce6.zip |
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); |