Re: [RFC] what to do with IOCB_DSYNC? From: Christoph Hellwig <hch@lst.de> Date: 2021-06-21 14:35:08 On Mon, Jun 21, 2021 at 02:32:46PM +0000, Al Viro wrote: I'd rather have a single helper for those checks, rather than open-coding IS_SYNC() + IOCB_DSYNC in each, for obvious reasons... Yes, I think something like: static inline bool iocb_is_sync(struct kiocb *iocb) { return (iocb->ki_flags & IOCB_DSYNC) || S_SYNC(iocb->ki_filp->f_mapping->host); } should do the job.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help