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:
76bc8e2
)
ovl: clear nlink on rmdir
author
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 29 Jul 2016 10:05:24 +0000
(12:05 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 29 Jul 2016 10:05:24 +0000
(12:05 +0200)
To make delete notification work on fa/inotify.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/overlayfs/dir.c
b/fs/overlayfs/dir.c
index 8f95c213c0c66cf843f8cc3935c691433753b7d1..ddda948109d391a050c9e2171a85e6fb32f95720 100644
(file)
--- a/
fs/overlayfs/dir.c
+++ b/
fs/overlayfs/dir.c
@@
-696,8
+696,12
@@
static int ovl_do_remove(struct dentry *dentry, bool is_dir)
else
err = ovl_remove_and_whiteout(dentry, is_dir);
revert_creds(old_cred);
- if (!err && !is_dir)
- drop_nlink(dentry->d_inode);
+ if (!err) {
+ if (is_dir)
+ clear_nlink(dentry->d_inode);
+ else
+ drop_nlink(dentry->d_inode);
+ }
out_drop_write:
ovl_drop_write(dentry);
out: