commit | 2ba48ce513c4e545318d22b138861d5876edf906 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Apr 09 13:52:01 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 11 22:30:22 2015 -0400 |
tree | 0e2a5130ead5c71f0b079b1acd620fba98f99256 | |
parent | 3309dd04cbcd2cdad168485af5cf3576b5051e49 [diff] [blame] |
mirror O_APPEND and O_DIRECT into iocb->ki_flags ... avoiding write_iter/fcntl races. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 614bb42..08329af 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c
@@ -709,7 +709,7 @@ gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); - if (file->f_flags & O_APPEND) { + if (iocb->ki_flags & IOCB_APPEND) { struct gfs2_holder gh; ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &gh);