The patch titled affs: be*_add_cpu conversion has been added to the -mm tree. Its filename is affs-be_add_cpu-conversion.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: affs: be*_add_cpu conversion From: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> 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@xxxxxxxxx> Cc: Roman Zippel <zippel@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/affs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/affs/file.c~affs-be_add_cpu-conversion fs/affs/file.c --- a/fs/affs/file.c~affs-be_add_cpu-conversion +++ a/fs/affs/file.c @@ -543,7 +543,7 @@ affs_extent_file_ofs(struct inode *inode if (boff + tmp > bsize || tmp > bsize) BUG(); memset(AFFS_DATA(bh) + boff, 0, tmp); - AFFS_DATA_HEAD(bh)->size = cpu_to_be32(be32_to_cpu(AFFS_DATA_HEAD(bh)->size) + tmp); + be32_add_cpu(&AFFS_DATA_HEAD(bh)->size, tmp); affs_fix_checksum(sb, bh); mark_buffer_dirty_inode(bh, inode); size += tmp; @@ -686,7 +686,7 @@ static int affs_write_end_ofs(struct fil if (boff + tmp > bsize || tmp > bsize) BUG(); memcpy(AFFS_DATA(bh) + boff, data + from, tmp); - AFFS_DATA_HEAD(bh)->size = cpu_to_be32(be32_to_cpu(AFFS_DATA_HEAD(bh)->size) + tmp); + be32_add_cpu(&AFFS_DATA_HEAD(bh)->size, tmp); affs_fix_checksum(sb, bh); mark_buffer_dirty_inode(bh, inode); written += tmp; _ Patches currently in -mm which might be from marcin.slusarz@xxxxxxxxx are xfs-convert-bex_add-to-bex_add_cpu-new-common-api.patch udf-fix-directory-offset-handling.patch udf-fix-udf_add_free_space.patch git-gfs2-nmw.patch affs-be_add_cpu-conversion.patch hfs-hfsplus-be_add_cpu-conversion.patch ipw2200-le_add_cpu-conversion.patch scsi-le_add_cpu-conversion.patch ext2-le_add_cpu-conversion.patch ext4-le_add_cpu-conversion.patch jfs-le_add_cpu-conversion.patch ntfs-le_add_cpu-conversion.patch ocfs2-le_add_cpu-conversion.patch quota-le_add_cpu-conversion.patch reiserfs-le_add_cpu-conversion.patch sysv-e_add_cpu-conversion.patch ufs-e_add_cpu-conversion.patch ufs-e_add_cpu-conversion-in-return.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html