Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] tmpfs: Decrement i_nlink correctly in shmem_rmdir()

shmem_rmdir() must undo the increment of i_nlink done in
shmem_get_inode() for directories, otherwise at least
IN_DELETE_SELF inotify event generation is broken.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Sergey Vlasov and committed by
Linus Torvalds
86bc843a cfd95a9c

+1
+1
mm/shmem.c
··· 1780 1780 if (!simple_empty(dentry)) 1781 1781 return -ENOTEMPTY; 1782 1782 1783 + dentry->d_inode->i_nlink--; 1783 1784 dir->i_nlink--; 1784 1785 return shmem_unlink(dir, dentry); 1785 1786 }