linux/fs/udf
Julia Lawall 8dee00bb75 fs/udf: Use DIV_ROUND_UP
The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.

An extract of the semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

#include <linux/kernel.h>

@depends on haskernel@
expression n,d;
@@

(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jan Kara <jack@suse.cz>
2008-04-17 14:22:23 +02:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
balloc.c udf: fix udf_add_free_space 2008-02-13 16:21:20 -08:00
crc.c udf: fix coding style 2008-02-08 09:22:35 -08:00
dir.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
directory.c udf: cleanup directory offset handling 2008-02-08 09:22:36 -08:00
ecma_167.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
file.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
fsync.c UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
ialloc.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
inode.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
lowlevel.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
misc.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
namei.c udf: kill useless file header comments for vfs method implementations 2008-04-17 14:22:23 +02:00
osta_udf.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
partition.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
super.c fs/udf: Use DIV_ROUND_UP 2008-04-17 14:22:23 +02:00
symlink.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
truncate.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udf_i.h udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udf_sb.h udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udfdecl.h udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00
udfend.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
udftime.c udf: fix coding style 2008-02-08 09:22:35 -08:00
unicode.c udf: move headers out include/linux/ 2008-04-17 14:22:23 +02:00