summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dquot.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2015-04-16 21:59:34 +1000
committerDave Chinner <david@fromorbit.com>2015-04-16 21:59:34 +1000
commit6dfa1b67e3b3a9bf536e2fb9ed99001c219822a5 (patch)
tree142857ff25d5d43393bdbc9c1ff18bffba4d7257 /fs/xfs/xfs_dquot.h
parentd5cc2e3f968ff60f247fdef15b04fac788ef46d2 (diff)
xfs: handle DIO overwrite EOF update completion correctly
Currently a DIO overwrite that extends the EOF (e.g sub-block IO or write into allocated blocks beyond EOF) requires a transaction for the EOF update. Thi is done in IO completion context, but we aren't explicitly handling this situation properly and so it can run in interrupt context. Ensure that we defer IO that spans EOF correctly to the DIO completion workqueue, and now that we have an ioend in IO completion we can use the common ioend completion path to do all the work. Note: we do not preallocate the append transaction as we can have multiple mapping and allocation calls per direct IO. hence preallocating can still leave us with nested transactions by attempting to map and allocate more blocks after we've preallocated an append transaction. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
0 files changed, 0 insertions, 0 deletions