From: Sergey Vlasov <vsu@xxxxxxxxxxx> 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@xxxxxxxxxxx> Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx> --- This can also be included in 2.6.17, though only inotify depends on it. mm/shmem.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- 2.6.17-rc6-git/mm/shmem.c +++ linux/mm/shmem.c @@ -1780,6 +1780,7 @@ static int shmem_rmdir(struct inode *dir if (!simple_empty(dentry)) return -ENOTEMPTY; + dentry->d_inode->i_nlink--; dir->i_nlink--; return shmem_unlink(dir, dentry); } - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html