Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312875
b: refs/heads/master
c: 049b3c1
h: refs/heads/master
i:
  312873: 5c5755c
  312871: 7e0c4e3
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent af3d53f commit a599936
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7968ce12e9645c5eb5bb3f4320e43c2e402d580c
refs/heads/master: 049b3c10eecd0a5f3605fa3cd13f638593213ccb
10 changes: 4 additions & 6 deletions trunk/Documentation/filesystems/porting
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,10 @@ protects *all* the dcache state of a given dentry.
via rcu-walk path walk (basically, if the file can have had a path name in the
vfs namespace).

i_dentry and i_rcu share storage in a union, and the vfs expects
i_dentry to be reinitialized before it is freed, so an:

INIT_LIST_HEAD(&inode->i_dentry);

must be done in the RCU callback.
Even though i_dentry and i_rcu share storage in a union, we will
initialize the former in inode_init_always(), so just leave it alone in
the callback. It used to be necessary to clean it there, but not anymore
(starting at 3.2).

--
[recommended]
Expand Down

0 comments on commit a599936

Please sign in to comment.