Commit bffdd661 authored by Vyacheslav Dubeyko's avatar Vyacheslav Dubeyko Committed by Linus Torvalds

hfsplus: add error message for the case of failure of sync fs in delayed_sync_fs() method

Add an error message for the case of failure of sync fs in
delayed_sync_fs() method.
Signed-off-by: default avatarVyacheslav Dubeyko <slava@dubeyko.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 81cc7fad
...@@ -232,6 +232,7 @@ static int hfsplus_sync_fs(struct super_block *sb, int wait) ...@@ -232,6 +232,7 @@ static int hfsplus_sync_fs(struct super_block *sb, int wait)
static void delayed_sync_fs(struct work_struct *work) static void delayed_sync_fs(struct work_struct *work)
{ {
int err;
struct hfsplus_sb_info *sbi; struct hfsplus_sb_info *sbi;
sbi = container_of(work, struct hfsplus_sb_info, sync_work.work); sbi = container_of(work, struct hfsplus_sb_info, sync_work.work);
...@@ -240,7 +241,9 @@ static void delayed_sync_fs(struct work_struct *work) ...@@ -240,7 +241,9 @@ static void delayed_sync_fs(struct work_struct *work)
sbi->work_queued = 0; sbi->work_queued = 0;
spin_unlock(&sbi->work_lock); spin_unlock(&sbi->work_lock);
hfsplus_sync_fs(sbi->alloc_file->i_sb, 1); err = hfsplus_sync_fs(sbi->alloc_file->i_sb, 1);
if (err)
printk(KERN_ERR "hfs: delayed sync fs err %d\n", err);
} }
void hfsplus_mark_mdb_dirty(struct super_block *sb) void hfsplus_mark_mdb_dirty(struct super_block *sb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment