projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875bd5a
)
Make fsnotify possibly work better for the inode removal case
author
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 20 Sep 2005 02:54:29 +0000
(19:54 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 20 Sep 2005 02:54:29 +0000
(19:54 -0700)
Checking i_nlink is dubious, but the alternatives look even
less appetizing.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/dcache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dcache.c
b/fs/dcache.c
index 7376b61269fb711c230ec1d0161119ce0672fc36..fb10386c59bed6b34a51af4fb930eb79c86ac586 100644
(file)
--- a/
fs/dcache.c
+++ b/
fs/dcache.c
@@
-102,7
+102,8
@@
static inline void dentry_iput(struct dentry * dentry)
list_del_init(&dentry->d_alias);
spin_unlock(&dentry->d_lock);
spin_unlock(&dcache_lock);
- fsnotify_inoderemove(inode);
+ if (!inode->i_nlink)
+ fsnotify_inoderemove(inode);
if (dentry->d_op && dentry->d_op->d_iput)
dentry->d_op->d_iput(dentry, inode);
else