]> git.karo-electronics.de Git - karo-tx-linux.git/commit
inotify: provide function for name length rounding
authorJan Kara <jack@suse.cz>
Mon, 16 Dec 2013 23:44:50 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:50 +0000 (10:44 +1100)
commitff489271ab8aa42a95af6a094da47e08ed6767eb
tree07283cbd5baf6b61173e05284611c36952ee11ec
parent2932e6e4a8de8ca1812c8cd1ea11559f0c3da932
inotify: provide function for name length rounding

Rounding of name length when passing it to userspace was done in several
places.  Provide a function to do it and use it in all places.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/notify/inotify/inotify_user.c