diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/open.c b/fs/open.c index 280d4a963791..35bb784763a4 100644 --- a/fs/open.c +++ b/fs/open.c @@ -762,6 +762,7 @@ static int do_dentry_open(struct file *f, likely(f->f_op->write || f->f_op->write_iter)) f->f_mode |= FMODE_CAN_WRITE; + f->f_write_hint = WRITE_LIFE_NOT_SET; f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); file_ra_state_init(&f->f_ra, f->f_mapping->host->i_mapping); |