Al Viro
64894cf843
simplify lookup_open()/atomic_open() - do the temporary mnt_want_write() early
...
The write ref to vfsmount taken in lookup_open()/atomic_open() is going to
be dropped; we take the one to stay in dentry_open(). Just grab the temporary
in caller if it looks like we are going to need it (create/truncate/writable open)
and pass (by value) "has it succeeded" flag. Instead of doing mnt_want_write()
inside, check that flag and treat "false" as "mnt_want_write() has just failed".
mnt_want_write() is cheap and the things get considerably simpler and more robust
that way - we get it and drop it in the same function, to start with, rather
than passing a "has something in the guts of really scary functions taken it"
back to caller.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
2012-07-31 00:53:35 +04:00
..
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:01:43 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:35:30 +04:00
2012-07-14 16:38:34 +04:00
2012-05-15 10:39:28 -05:00
2012-07-29 21:24:17 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:01:29 +04:00
2012-07-23 00:00:58 +04:00
2012-07-23 00:00:58 +04:00
2012-07-23 00:01:55 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:34 +04:00
2012-07-22 23:58:09 +04:00
2012-07-22 23:58:04 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-05-15 23:34:37 +02:00
2012-06-01 00:10:32 -04:00
2012-07-23 00:00:58 +04:00
2012-07-23 00:00:58 +04:00
2012-07-29 23:17:39 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:38:34 +04:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:38:34 +04:00
2012-06-01 19:51:22 -07:00
2012-07-23 00:01:29 +04:00
2012-07-14 16:34:32 +04:00
2012-07-29 21:24:15 +04:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:38:34 +04:00
2012-06-20 15:15:03 -07:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-22 23:58:19 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:00:58 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:38:34 +04:00
2012-07-22 23:58:12 +04:00
2012-07-14 16:38:34 +04:00
2012-07-14 16:34:47 +04:00
2012-07-22 23:58:16 +04:00
2012-07-23 00:01:29 +04:00
2012-07-22 23:57:59 +04:00
2012-07-14 16:35:42 +04:00
2012-07-14 16:34:47 +04:00
2012-04-20 17:29:13 -07:00
2012-05-23 17:42:39 -07:00
2012-05-30 21:04:55 -04:00
2012-05-30 21:04:56 -04:00
2012-05-06 13:43:41 +08:00
2012-04-20 17:29:13 -07:00
2012-05-30 08:52:42 -07:00
2012-07-22 23:58:45 +04:00
2012-07-13 08:36:35 -07:00
2012-03-24 10:24:31 -07:00
2012-06-01 11:53:44 -07:00
2012-07-14 16:35:15 +04:00
2012-07-14 16:32:46 +04:00
2012-05-31 17:49:32 -07:00
2012-06-01 12:58:46 -04:00
2012-07-29 21:24:19 +04:00
2012-05-29 23:28:30 -04:00
2012-07-29 21:24:17 +04:00
2012-03-29 18:12:23 -07:00
2012-07-14 16:32:47 +04:00
2012-07-22 23:58:18 +04:00
2012-07-14 16:32:55 +04:00
2012-07-14 16:38:36 +04:00
2012-05-30 08:52:42 -07:00
2012-03-21 13:36:41 -07:00
2012-05-15 09:17:34 -04:00
2012-07-14 16:38:34 +04:00
2012-07-13 10:50:23 -07:00
2012-07-14 16:32:48 +04:00
2012-07-31 00:53:35 +04:00
2012-07-14 16:38:32 +04:00
2012-07-29 21:24:18 +04:00
2012-07-29 21:24:19 +04:00
2012-07-14 16:37:27 +04:00
2012-07-14 16:32:48 +04:00
2012-07-23 00:00:15 +04:00
2012-05-29 23:28:29 -04:00
2012-06-01 12:58:46 -04:00
2012-03-24 10:24:31 -07:00
2012-05-29 23:28:30 -04:00
2012-06-13 21:16:42 +02:00
2012-05-23 17:42:39 -07:00
2012-05-29 23:28:31 -04:00
2012-07-14 16:38:34 +04:00
2012-07-22 23:59:01 +04:00
2012-05-29 23:28:32 -04:00
2012-05-29 23:28:30 -04:00