mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
fs/dax: Reject IOCB_ATOMIC in dax_iomap_rw()
The DAX write path does not support IOCB_ATOMIC, so reject it when set. Suggested-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
82efde9cf2
commit
e7fb9b7132
1 changed files with 3 additions and 0 deletions
3
fs/dax.c
3
fs/dax.c
|
|
@ -1743,6 +1743,9 @@ dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
|
|||
loff_t done = 0;
|
||||
int ret;
|
||||
|
||||
if (WARN_ON_ONCE(iocb->ki_flags & IOCB_ATOMIC))
|
||||
return -EIO;
|
||||
|
||||
if (!iomi.len)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue