Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c8aebb0c
Commit
c8aebb0c
authored
Dec 18, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
per-superblock default ->d_op
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4162cf64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
fs/dcache.c
fs/dcache.c
+4
-0
include/linux/fs.h
include/linux/fs.h
+1
-0
No files found.
fs/dcache.c
View file @
c8aebb0c
...
...
@@ -1320,6 +1320,7 @@ struct dentry *d_alloc(struct dentry * parent, const struct qstr *name)
__dget_dlock
(
parent
);
dentry
->
d_parent
=
parent
;
dentry
->
d_sb
=
parent
->
d_sb
;
d_set_d_op
(
dentry
,
dentry
->
d_sb
->
s_d_op
);
list_add
(
&
dentry
->
d_u
.
d_child
,
&
parent
->
d_subdirs
);
spin_unlock
(
&
parent
->
d_lock
);
}
...
...
@@ -1335,6 +1336,7 @@ struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name)
struct
dentry
*
dentry
=
d_alloc
(
NULL
,
name
);
if
(
dentry
)
{
dentry
->
d_sb
=
sb
;
d_set_d_op
(
dentry
,
dentry
->
d_sb
->
s_d_op
);
dentry
->
d_parent
=
dentry
;
dentry
->
d_flags
|=
DCACHE_DISCONNECTED
;
}
...
...
@@ -1507,6 +1509,7 @@ struct dentry * d_alloc_root(struct inode * root_inode)
res
=
d_alloc
(
NULL
,
&
name
);
if
(
res
)
{
res
->
d_sb
=
root_inode
->
i_sb
;
d_set_d_op
(
res
,
res
->
d_sb
->
s_d_op
);
res
->
d_parent
=
res
;
d_instantiate
(
res
,
root_inode
);
}
...
...
@@ -1567,6 +1570,7 @@ struct dentry *d_obtain_alias(struct inode *inode)
/* attach a disconnected dentry */
spin_lock
(
&
tmp
->
d_lock
);
tmp
->
d_sb
=
inode
->
i_sb
;
d_set_d_op
(
tmp
,
tmp
->
d_sb
->
s_d_op
);
tmp
->
d_inode
=
inode
;
tmp
->
d_flags
|=
DCACHE_DISCONNECTED
;
list_add
(
&
tmp
->
d_alias
,
&
inode
->
i_dentry
);
...
...
include/linux/fs.h
View file @
c8aebb0c
...
...
@@ -1423,6 +1423,7 @@ struct super_block {
* generic_show_options()
*/
char
__rcu
*
s_options
;
const
struct
dentry_operations
*
s_d_op
;
/* default d_op for dentries */
};
extern
struct
timespec
current_fs_time
(
struct
super_block
*
sb
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment