From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vyacheslav Dubeyko Subject: [PATCH] hfsplus: add error message for the case of failure of sync fs in delayed_sync_fs() method Date: Tue, 04 Dec 2012 14:03:13 +0400 Message-ID: <1354615393.2503.6.camel@slavad-ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Hin-Tak Leung To: linux-fsdevel@vger.kernel.org, Andrew Morton , Christoph Hellwig , Al Viro Return-path: Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:56577 "HELO oproxy8-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752359Ab2LDKDT (ORCPT ); Tue, 4 Dec 2012 05:03:19 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Vyacheslav Dubeyko 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 --- fs/hfsplus/super.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 811a84d..ac4ec76 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -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) -- 1.7.9.5