Skip to content

Commit

Permalink
missed mnt_drop_write() in do_dentry_open()
Browse files Browse the repository at this point in the history
This one ought to be __mnt_drop_write(), to match __mnt_want_write()
in the beginning...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Aug 4, 2012
1 parent 5c57f20 commit fe7c805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/open.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ static int do_dentry_open(struct file *f,
* here, so just reset the state.
*/
file_reset_write(f);
mnt_drop_write(f->f_path.mnt);
__mnt_drop_write(f->f_path.mnt);
}
}
cleanup_file:
Expand Down

0 comments on commit fe7c805

Please sign in to comment.