diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-09-27 09:37:53 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-09-27 09:37:53 -0400 |
commit | ba39ebb61401cfe0ccd58dd0cd4da88465528c0a (patch) | |
tree | d69c14ea20c8a229cb14e7911fdc207bbd914081 /fs/ext4/super.c | |
parent | 6d1ab10e69ff5f3cb63920ba965ec0f1f0bdaf8d (diff) | |
download | op-kernel-dev-ba39ebb61401cfe0ccd58dd0cd4da88465528c0a.zip op-kernel-dev-ba39ebb61401cfe0ccd58dd0cd4da88465528c0a.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index a53a23a..ae45632 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, */ if (!es->s_error_count) mod_timer(&EXT4_SB(sb)->s_err_report, jiffies + 24*60*60*HZ); - es->s_error_count = cpu_to_le32(le32_to_cpu(es->s_error_count) + 1); + le32_add_cpu(&es->s_error_count, 1); } static void save_error_info(struct super_block *sb, const char *func, |