Skip to contentSkip to conversation

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

PATCH New Vyacheslav Dubeyko 1 participant 1 message Dec 4, 2012

Subsystems (2)
lore
Share & tools
lore

Vyacheslav Dubeyko

author maintainer
#0 lore raw

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

From: Vyacheslav Dubeyko <[email protected]>
Subject: [PATCH] hfsplus: add error message for the case of failure of sync fs in delayed_sync_fs() method

The patch simply adds error message for the case of failure of sync fs in delayed_sync_fs() method.

---
 fs/hfsplus/super.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
fs/hfsplus/super.c +4 -1
index 811a84d..ac4ec76 100644
@@ -226,6 +226,7 @@ out:
 
 static void delayed_sync_fs(struct work_struct *work)
 {
+	int err;
 	struct hfsplus_sb_info *sbi;
 
 	sbi = container_of(work, struct hfsplus_sb_info, sync_work.work);
@@ -234,7 +235,9 @@ static void delayed_sync_fs(struct work_struct *work)
 	sbi->work_queued = 0;
 	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)
Signature · 1 line
1.7.9.5