projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VFS: normal filesystems (and lustre): d_inode() annotations
[deliverable/linux.git]
/
fs
/
gfs2
/
dentry.c
diff --git
a/fs/gfs2/dentry.c
b/fs/gfs2/dentry.c
index 589f4ea9381c4518de238d786f56433512c57565..30822b148f3e607b97678a2e3b1224b3f30d422f 100644
(file)
--- a/
fs/gfs2/dentry.c
+++ b/
fs/gfs2/dentry.c
@@
-48,9
+48,9
@@
static int gfs2_drevalidate(struct dentry *dentry, unsigned int flags)
return -ECHILD;
parent = dget_parent(dentry);
return -ECHILD;
parent = dget_parent(dentry);
- sdp = GFS2_SB(
parent->d_inode
);
- dip = GFS2_I(
parent->d_inode
);
- inode = d
entry->d_inode
;
+ sdp = GFS2_SB(
d_inode(parent)
);
+ dip = GFS2_I(
d_inode(parent)
);
+ inode = d
_inode(dentry)
;
if (inode) {
if (is_bad_inode(inode))
if (inode) {
if (is_bad_inode(inode))
@@
-68,7
+68,7
@@
static int gfs2_drevalidate(struct dentry *dentry, unsigned int flags)
goto fail;
}
goto fail;
}
- error = gfs2_dir_check(
parent->d_inode
, &dentry->d_name, ip);
+ error = gfs2_dir_check(
d_inode(parent)
, &dentry->d_name, ip);
switch (error) {
case 0:
if (!inode)
switch (error) {
case 0:
if (!inode)
@@
-113,10
+113,10
@@
static int gfs2_dentry_delete(const struct dentry *dentry)
{
struct gfs2_inode *ginode;
{
struct gfs2_inode *ginode;
- if (
!dentry->d_inode
)
+ if (
d_really_is_negative(dentry)
)
return 0;
return 0;
- ginode = GFS2_I(d
entry->d_inode
);
+ ginode = GFS2_I(d
_inode(dentry)
);
if (!ginode->i_iopen_gh.gh_gl)
return 0;
if (!ginode->i_iopen_gh.gh_gl)
return 0;
This page took
0.03895 seconds
and
5
git commands to generate.