Skip to content

Commit

Permalink
[PATCH] Change HFS+ to not use ll_rw_block()
Browse files Browse the repository at this point in the history
Use block layer predefined function.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Sep 7, 2005
1 parent 096125f commit e39f07c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit e39f07c

Please sign in to comment.