missed mnt_drop_write() in do_dentry_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Aug 2012 04:39:23 +0000 (08:39 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 Aug 2012 08:15:41 +0000 (12:15 +0400)
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>
fs/open.c

index f3d96e7e7b19d4254924a59dfc4121aa5d8635b4..bc132e167d2dd2e361fd8fb0354f987f2fa296dd 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -717,7 +717,7 @@ cleanup_all:
                         * 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: