VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Marcin Slusarz <marcin.slusarz@gmail.com> 2008-04-30 00:54:47 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2008-04-30 08:29:51 -0700 commit: 20c79e785ae3f813310261dde81b29ab0c3e28b4 parent: 6369a4abb486692cd0f5fe592b48ec7419b7976c
Commit Summary:
hfs/hfsplus: be*_add_cpu conversion
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hfs/mdb.c b/fs/hfs/mdb.c
index b4651e128d7f..36ca2e1a4fa3 100644
--- a/fs/hfs/mdb.c
+++ b/fs/hfs/mdb.c
@@ -215,7 +215,7 @@ int hfs_mdb_get(struct super_block *sb)
 		attrib &= cpu_to_be16(~HFS_SB_ATTRIB_UNMNT);
 		attrib |= cpu_to_be16(HFS_SB_ATTRIB_INCNSTNT);
 		mdb->drAtrb = attrib;
-		mdb->drWrCnt = cpu_to_be32(be32_to_cpu(mdb->drWrCnt) + 1);
+		be32_add_cpu(&mdb->drWrCnt, 1);
 		mdb->drLsMod = hfs_mtime();
 
 		mark_buffer_dirty(HFS_SB(sb)->mdb_bh);