]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
inotify: do not send a block of zeros when no pathname is available
authorBrian Rogers <brian@xyzw.org>
Fri, 28 Aug 2009 14:00:05 +0000 (10:00 -0400)
committerEric Paris <eparis@redhat.com>
Fri, 28 Aug 2009 14:03:06 +0000 (10:03 -0400)
commitb962e7312ae87006aed6f68ceee94bdf8db08338
tree5d74244d31f510d346afbe80fea3285ccb8504d8
parent326ba5010a5429a5a528b268b36a5900d4ab0eba
inotify: do not send a block of zeros when no pathname is available

When an event has no pathname, there's no need to pad it with a null byte and
therefore generate an inotify_event sized block of zeros. This fixes a
regression introduced by commit 0db501bd0610ee0c0aca84d927f90bcccd09e2bd where
my system wouldn't finish booting because some process was being confused by
this.

Signed-off-by: Brian Rogers <brian@xyzw.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_user.c