Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e39f07c8 authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds
Browse files

[PATCH] Change HFS+ to not use ll_rw_block()



Use block layer predefined function.

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 096125f3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -217,8 +217,7 @@ static void hfsplus_put_super(struct super_block *sb)
		vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT);
		vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT);
		mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh);
		ll_rw_block(WRITE, 1, &HFSPLUS_SB(sb).s_vhbh);
		wait_on_buffer(HFSPLUS_SB(sb).s_vhbh);
		sync_dirty_buffer(HFSPLUS_SB(sb).s_vhbh);
	}

	hfs_btree_close(HFSPLUS_SB(sb).cat_tree);
@@ -416,8 +415,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
	vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT);
	vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT);
	mark_buffer_dirty(HFSPLUS_SB(sb).s_vhbh);
	ll_rw_block(WRITE, 1, &HFSPLUS_SB(sb).s_vhbh);
	wait_on_buffer(HFSPLUS_SB(sb).s_vhbh);
	sync_dirty_buffer(HFSPLUS_SB(sb).s_vhbh);

	if (!HFSPLUS_SB(sb).hidden_dir) {
		printk("HFS+: create hidden dir...\n");