mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ceph: switch to use of ->d_init()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
18fc8abdb7
commit
ad5cb123fd
6 changed files with 5 additions and 67 deletions
|
@ -1203,12 +1203,7 @@ retry_lookup:
|
|||
err = -ENOMEM;
|
||||
goto done;
|
||||
}
|
||||
err = ceph_init_dentry(dn);
|
||||
if (err < 0) {
|
||||
dput(dn);
|
||||
dput(parent);
|
||||
goto done;
|
||||
}
|
||||
err = 0;
|
||||
} else if (d_really_is_positive(dn) &&
|
||||
(ceph_ino(d_inode(dn)) != vino.ino ||
|
||||
ceph_snap(d_inode(dn)) != vino.snap)) {
|
||||
|
@ -1561,12 +1556,6 @@ retry_lookup:
|
|||
err = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
ret = ceph_init_dentry(dn);
|
||||
if (ret < 0) {
|
||||
dput(dn);
|
||||
err = ret;
|
||||
goto out;
|
||||
}
|
||||
} else if (d_really_is_positive(dn) &&
|
||||
(ceph_ino(d_inode(dn)) != vino.ino ||
|
||||
ceph_snap(d_inode(dn)) != vino.snap)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue