Commit 20c79e785ae3f813310261dde81b29ab0c3e28b4
Committed by
Linus Torvalds
1 parent
6369a4abb4
Exists in
master
and in
39 other branches
hfs/hfsplus: be*_add_cpu conversion
replace all: big_endian_variable = cpu_to_beX(beX_to_cpu(big_endian_variable) + expression_in_cpu_byteorder); with: beX_add_cpu(&big_endian_variable, expression_in_cpu_byteorder); generated with semantic patch Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
fs/hfs/mdb.c
... | ... | @@ -215,7 +215,7 @@ |
215 | 215 | attrib &= cpu_to_be16(~HFS_SB_ATTRIB_UNMNT); |
216 | 216 | attrib |= cpu_to_be16(HFS_SB_ATTRIB_INCNSTNT); |
217 | 217 | mdb->drAtrb = attrib; |
218 | - mdb->drWrCnt = cpu_to_be32(be32_to_cpu(mdb->drWrCnt) + 1); | |
218 | + be32_add_cpu(&mdb->drWrCnt, 1); | |
219 | 219 | mdb->drLsMod = hfs_mtime(); |
220 | 220 | |
221 | 221 | mark_buffer_dirty(HFS_SB(sb)->mdb_bh); |
fs/hfsplus/super.c
... | ... | @@ -423,7 +423,7 @@ |
423 | 423 | */ |
424 | 424 | vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION); |
425 | 425 | vhdr->modify_date = hfsp_now2mt(); |
426 | - vhdr->write_count = cpu_to_be32(be32_to_cpu(vhdr->write_count) + 1); | |
426 | + be32_add_cpu(&vhdr->write_count, 1); | |
427 | 427 | vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT); |
428 | 428 | vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT); |
429 | 429 | mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh); |