hfsplus: add error message for the case of failure of sync fs in delayed_sync_fs() method
Subsystems (2)
Vyacheslav Dubeyko
maintainerPATCH 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.
Signed-off-by Vyacheslav Dubeyko <[email protected]>
--- fs/hfsplus/super.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/hfsplus/super.c +4 -1
@@ -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