Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217781
b: refs/heads/master
c: 3072b90
h: refs/heads/master
i:
  217779: 24025d2
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Oct 26, 2010
1 parent 4e17d3c commit 732e570
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a3956c790290efeb647bbb0c3a90476bb57800e
refs/heads/master: 3072b90c4726396e38160cc1f7c93191e2f4a566
11 changes: 0 additions & 11 deletions trunk/fs/hfs/hfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,6 @@ static inline void hfs_bitmap_dirty(struct super_block *sb)
sb->s_dirt = 1;
}

static inline void hfs_buffer_sync(struct buffer_head *bh)
{
while (buffer_locked(bh)) {
wait_on_buffer(bh);
}
if (buffer_dirty(bh)) {
ll_rw_block(WRITE, 1, &bh);
wait_on_buffer(bh);
}
}

#define sb_bread512(sb, sec, data) ({ \
struct buffer_head *__bh; \
sector_t __block; \
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/hfs/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ int hfs_mdb_get(struct super_block *sb)
mdb->drLsMod = hfs_mtime();

mark_buffer_dirty(HFS_SB(sb)->mdb_bh);
hfs_buffer_sync(HFS_SB(sb)->mdb_bh);
sync_dirty_buffer(HFS_SB(sb)->mdb_bh);
}

return 0;
Expand Down Expand Up @@ -287,7 +287,7 @@ void hfs_mdb_commit(struct super_block *sb)
HFS_SB(sb)->alt_mdb->drAtrb |= cpu_to_be16(HFS_SB_ATTRIB_UNMNT);
HFS_SB(sb)->alt_mdb->drAtrb &= cpu_to_be16(~HFS_SB_ATTRIB_INCNSTNT);
mark_buffer_dirty(HFS_SB(sb)->alt_mdb_bh);
hfs_buffer_sync(HFS_SB(sb)->alt_mdb_bh);
sync_dirty_buffer(HFS_SB(sb)->alt_mdb_bh);
}

if (test_and_clear_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags)) {
Expand Down

0 comments on commit 732e570

Please sign in to comment.