summaryrefslogtreecommitdiff
path: root/fs/super.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2023-08-29 16:25:47 +0300
committerAmir Goldstein <amir73il@gmail.com>2023-10-31 00:12:54 +0200
commit5f034d34737e8c440bbbd13e5ef283793d841140 (patch)
tree9024df4e88278d2a611e3101abd9809f3303d293 /fs/super.c
parentdb5b5e83eee46ec5e3d685282c9e4f38946cb0ea (diff)
ovl: propagate IOCB_APPEND flag on writes to realfile
If ovl file is opened O_APPEND, the underlying realfile is also opened O_APPEND, so it makes sense to propagate the IOCB_APPEND flags on sync writes to realfile, just as we do with aio writes. Effectively, because sync ovl writes are protected by inode lock, this change only makes a difference if the realfile is written to (size extending writes) from underneath overlayfs. The behavior in this case is undefined, so it is ok if we change the behavior (to fail the ovl IOCB_APPEND write). Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions