diff --git a/fs/lustre/llite/rw26.c b/fs/lustre/llite/rw26.c index 2baab10..f5c1479 100644 --- a/fs/lustre/llite/rw26.c +++ b/fs/lustre/llite/rw26.c @@ -684,8 +684,7 @@ static int ll_write_end(struct file *file, struct address_space *mapping, unplug = true; } - if (unplug || - file->f_flags & O_SYNC || IS_SYNC(file_inode(file))) + if (unplug || io->u.ci_wr.wr_sync) result = vvp_io_write_commit(env, io); if (result < 0)