Al Viro
08b0ab7c20
untangling do_lookup() - get rid of need_reval in !dentry case
...
Everything arriving into if (!dentry) will have need_reval = 1.
Indeed, the only way to get there with need_reval reset to 0 would
be via
if (unlikely(d_need_lookup(dentry)))
goto unlazy;
if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE)) {
status = d_revalidate(dentry, nd);
if (unlikely(status <= 0)) {
if (status != -ECHILD)
need_reval = 0;
goto unlazy;
...
unlazy:
/* no assignments to dentry */
if (dentry && unlikely(d_need_lookup(dentry))) {
dput(dentry);
dentry = NULL;
}
and if d_need_lookup() had already been false the first time around, it
will remain false on the second call as well.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-03-31 16:03:16 -04:00
..
2012-03-28 09:58:38 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-03-21 13:36:41 -07:00
2012-03-29 18:12:23 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-03-21 13:36:41 -07:00
2012-03-20 21:29:41 -04:00
2012-03-28 10:01:29 -07:00
2012-03-23 09:07:15 -07:00
2012-03-28 18:30:03 +01:00
2012-03-20 21:29:48 -04:00
2012-03-21 13:36:41 -07:00
2012-03-21 13:36:41 -07:00
2012-03-21 13:36:41 -07:00
2012-03-21 13:54:22 -07:00
2012-03-20 21:29:49 -04:00
2012-03-20 21:29:35 -04:00
2012-03-28 20:04:27 -07:00
2012-03-31 16:03:16 -04:00
2012-03-31 16:03:16 -04:00
2012-03-29 17:00:56 -07:00
2012-03-23 16:58:40 -07:00
2012-03-20 21:29:35 -04:00
2012-03-21 13:36:41 -07:00
2012-03-31 16:03:15 -04:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:53 -04:00
2012-03-27 18:29:53 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-03-22 09:04:48 -07:00
2012-03-20 21:29:35 -04:00
2012-03-21 10:15:51 -07:00
2012-03-28 15:58:21 -07:00
2012-03-21 13:36:41 -07:00
2012-03-20 21:29:48 -04:00
2012-03-26 11:48:54 -04:00
2012-03-21 13:36:41 -07:00
2012-03-21 13:36:41 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 19:02:35 -07:00
2012-03-29 14:53:25 -07:00
2012-03-21 13:36:41 -07:00
2012-03-23 16:58:31 -07:00
2012-03-21 13:36:41 -07:00
2012-03-31 16:03:15 -04:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-03-29 18:12:23 -07:00
2012-03-31 16:03:15 -04:00
2012-03-20 21:29:52 -04:00
2012-03-20 21:29:38 -04:00
2012-03-28 10:00:14 -07:00
2012-03-20 21:29:37 -04:00
2012-03-28 15:58:21 -07:00
2012-03-20 21:29:35 -04:00
2012-03-28 18:05:54 -07:00
2012-03-21 13:36:41 -07:00
2012-03-20 21:29:35 -04:00
2012-03-23 09:27:40 -07:00
2012-03-28 10:00:14 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 15:58:21 -07:00
2012-03-31 16:03:15 -04:00
2012-03-20 21:29:45 -04:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-29 18:12:23 -07:00
2012-03-20 21:29:46 -04:00
2012-03-28 15:58:21 -07:00
2012-03-23 16:58:31 -07:00
2012-03-20 21:29:46 -04:00
2012-03-20 21:29:51 -04:00
2012-03-20 21:48:21 +08:00
2012-02-28 19:31:58 -05:00
2012-03-23 16:58:31 -07:00
2012-03-28 17:14:35 -07:00
2012-03-24 10:24:31 -07:00
2012-03-29 18:12:23 -07:00
2012-03-28 09:54:34 -07:00
2012-02-28 19:31:58 -05:00
2012-02-23 15:56:21 -08:00
2012-02-28 19:31:58 -05:00
2012-03-28 15:58:21 -07:00
2012-03-29 18:12:23 -07:00
2012-02-19 10:30:52 -08:00
2012-03-20 21:29:32 -04:00
2012-03-29 18:12:23 -07:00
2012-03-24 10:24:31 -07:00
2012-03-28 10:07:27 -07:00
2012-03-20 21:29:51 -04:00
2012-02-28 19:31:58 -05:00
2012-03-21 13:36:41 -07:00
2012-03-24 10:24:31 -07:00
2012-03-20 21:29:38 -04:00
2012-02-28 19:31:58 -05:00
2012-03-31 16:03:16 -04:00
2012-02-19 10:30:52 -08:00
2012-03-23 16:58:31 -07:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-03-29 18:12:23 -07:00
2012-03-24 10:24:31 -07:00
2012-02-24 11:42:50 -08:00
2012-03-24 10:24:31 -07:00
2012-02-28 19:31:58 -05:00
2012-03-24 10:24:31 -07:00
2012-02-28 19:31:58 -05:00
2012-03-24 10:24:31 -07:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00