The patch titled reiserfs: le*_add_cpu conversion has been added to the -mm tree. Its filename is reiserfs-le_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: reiserfs: le*_add_cpu conversion From: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> replace all: little_endian_variable = cpu_to_leX(leX_to_cpu(little_endian_variable) + expression_in_cpu_byteorder); with: leX_add_cpu(&little_endian_variable, expression_in_cpu_byteorder); generated with semantic patch Signed-off-by: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> Cc: Jeff Mahoney <jeffm@xxxxxxxx> Cc: Chris Mason <chris.mason@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/reiserfs/objectid.c | 5 ++--- fs/reiserfs/stree.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff -puN fs/reiserfs/objectid.c~reiserfs-le_add_cpu-conversion fs/reiserfs/objectid.c --- a/fs/reiserfs/objectid.c~reiserfs-le_add_cpu-conversion +++ a/fs/reiserfs/objectid.c @@ -114,7 +114,7 @@ void reiserfs_release_objectid(struct re if (objectid_to_release == le32_to_cpu(map[i])) { /* This incrementation unallocates the objectid. */ //map[i]++; - map[i] = cpu_to_le32(le32_to_cpu(map[i]) + 1); + le32_add_cpu(&map[i], 1); /* Did we unallocate the last member of an odd sequence, and can shrink oids? */ if (map[i] == map[i + 1]) { @@ -138,8 +138,7 @@ void reiserfs_release_objectid(struct re /* size of objectid map is not changed */ if (objectid_to_release + 1 == le32_to_cpu(map[i + 1])) { //objectid_map[i+1]--; - map[i + 1] = - cpu_to_le32(le32_to_cpu(map[i + 1]) - 1); + le32_add_cpu(&map[i + 1], -1); return; } diff -puN fs/reiserfs/stree.c~reiserfs-le_add_cpu-conversion fs/reiserfs/stree.c --- a/fs/reiserfs/stree.c~reiserfs-le_add_cpu-conversion +++ a/fs/reiserfs/stree.c @@ -1419,8 +1419,7 @@ int reiserfs_delete_object(struct reiser inode_generation = &REISERFS_SB(th->t_super)->s_rs->s_inode_generation; - *inode_generation = - cpu_to_le32(le32_to_cpu(*inode_generation) + 1); + le32_add_cpu(inode_generation, 1); } /* USE_INODE_GENERATION_COUNTER */ #endif _ 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