aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-27 09:37:53 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-09-27 09:37:53 -0400
commitba39ebb61401cfe0ccd58dd0cd4da88465528c0a (patch)
treed69c14ea20c8a229cb14e7911fdc207bbd914081 /fs/ext4/super.c
parent6d1ab10e69ff5f3cb63920ba965ec0f1f0bdaf8d (diff)
ext4: convert to use leXX_add_cpu()
Convert cpu_to_leXX(leXX_to_cpu(E1) + E2) to use leXX_add_cpu(). dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index a53a23aef5e3..ae456321c5bf 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -431,7 +431,7 @@ static void __save_error_info(struct super_block *sb, const char *func,
431 */ 431 */
432 if (!es->s_error_count) 432 if (!es->s_error_count)
433 mod_timer(&EXT4_SB(sb)->s_err_report, jiffies + 24*60*60*HZ); 433 mod_timer(&EXT4_SB(sb)->s_err_report, jiffies + 24*60*60*HZ);
434 es->s_error_count = cpu_to_le32(le32_to_cpu(es->s_error_count) + 1); 434 le32_add_cpu(&es->s_error_count, 1);
435} 435}
436 436
437static void save_error_info(struct super_block *sb, const char *func, 437static void save_error_info(struct super_block *sb, const char *func,