diff options
author | Christoph Hellwig <hch@lst.de> | 2010-10-06 08:49:17 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-26 01:18:21 (GMT) |
commit | 3072b90c4726396e38160cc1f7c93191e2f4a566 (patch) | |
tree | 9c90f93bd00fa31c3b70e0e7a6ef1d88b0c71b38 /fs/hfs/hfs_fs.h | |
parent | 4a3956c790290efeb647bbb0c3a90476bb57800e (diff) | |
download | linux-3072b90c4726396e38160cc1f7c93191e2f4a566.tar.xz |
hfs: use sync_dirty_buffer
Use sync_dirty_buffer instead of the incorrect opencoding it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hfs/hfs_fs.h')
-rw-r--r-- | fs/hfs/hfs_fs.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/hfs/hfs_fs.h b/fs/hfs/hfs_fs.h index 4f55651..1efcbc7 100644 --- a/fs/hfs/hfs_fs.h +++ b/fs/hfs/hfs_fs.h @@ -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; \ |