inotify: provide function for name length rounding
authorJan Kara <jack@suse.cz>
Tue, 21 Jan 2014 23:48:13 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:41 +0000 (16:19 -0800)
commite9fe69045bd648d75d8d8099b8658a4ee005a8e5
tree9c3e81c861c50df65e3337cbb85af6420a2df47d
parent0abdd7a81b7e3fd781d7fabcca49501852bba17e
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/inotify/inotify_user.c