summaryrefslogtreecommitdiff
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-27 17:37:53 +0400
committerTheodore Ts'o <tytso@mit.edu>2012-09-27 17:37:53 +0400
commitba39ebb61401cfe0ccd58dd0cd4da88465528c0a (patch)
treed69c14ea20c8a229cb14e7911fdc207bbd914081 /fs/ext4/super.c
parent6d1ab10e69ff5f3cb63920ba965ec0f1f0bdaf8d (diff)
downloadlinux-ba39ebb61401cfe0ccd58dd0cd4da88465528c0a.tar.xz
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,
*/
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,