diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-04-28 05:15:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:43 -0400 |
commit | fba4d3997f4c3dc6de927f7f516168580033ae1a (patch) | |
tree | 296923be4f914ebd4500cba94fad091bf01c15c8 /fs/ext2/super.c | |
parent | 1e3832b0b1518232f47d89bc9d1f68e151a749ff (diff) |
ext2: le*_add_cpu conversion
replace all:
little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) +
expression_in_cpu_byteorder);
with:
leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder);
generated with semantic patch
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r-- | fs/ext2/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 088b011bb97e..40d934c3e403 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -604,7 +604,7 @@ static int ext2_setup_super (struct super_block * sb, | |||
604 | "running e2fsck is recommended\n"); | 604 | "running e2fsck is recommended\n"); |
605 | if (!le16_to_cpu(es->s_max_mnt_count)) | 605 | if (!le16_to_cpu(es->s_max_mnt_count)) |
606 | es->s_max_mnt_count = cpu_to_le16(EXT2_DFL_MAX_MNT_COUNT); | 606 | es->s_max_mnt_count = cpu_to_le16(EXT2_DFL_MAX_MNT_COUNT); |
607 | es->s_mnt_count=cpu_to_le16(le16_to_cpu(es->s_mnt_count) + 1); | 607 | le16_add_cpu(&es->s_mnt_count, 1); |
608 | ext2_write_super(sb); | 608 | ext2_write_super(sb); |
609 | if (test_opt (sb, DEBUG)) | 609 | if (test_opt (sb, DEBUG)) |
610 | printk ("[EXT II FS %s, %s, bs=%lu, fs=%lu, gc=%lu, " | 610 | printk ("[EXT II FS %s, %s, bs=%lu, fs=%lu, gc=%lu, " |