]> err.no Git - linux-2.6/commit
[PATCH] tmpfs: Decrement i_nlink correctly in shmem_rmdir()
authorSergey Vlasov <vsu@altlinux.ru>
Mon, 12 Jun 2006 20:53:23 +0000 (21:53 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Jun 2006 21:29:04 +0000 (14:29 -0700)
commit86bc843a268058df558844b6bf64531617fbc698
tree159a320d16495b1328aa6c7822ebbb79c5375da7
parentcfd95a9cf58cd9e92d4c23b5ee20b07a3d121477
[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>
mm/shmem.c