diff options
| author | Vyacheslav Dubeyko <slava@dubeyko.com> | 2012-12-20 18:05:29 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-20 20:40:20 -0500 |
| commit | bffdd661bd424ea4298639805bfcbcaf8ffb62f2 (patch) | |
| tree | 067289fcb418e88ff96a1ec6e6d9729fedac73f3 | |
| parent | 81cc7fad552bc9e4fa8c1f25becbecaaa1d41b67 (diff) | |
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: Vyacheslav 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | fs/hfsplus/super.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 2036f585b09..796198d2655 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c | |||
| @@ -232,6 +232,7 @@ out: | |||
| 232 | 232 | ||
| 233 | static void delayed_sync_fs(struct work_struct *work) | 233 | static void delayed_sync_fs(struct work_struct *work) |
| 234 | { | 234 | { |
| 235 | int err; | ||
| 235 | struct hfsplus_sb_info *sbi; | 236 | struct hfsplus_sb_info *sbi; |
| 236 | 237 | ||
| 237 | sbi = container_of(work, struct hfsplus_sb_info, sync_work.work); | 238 | 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 | sbi->work_queued = 0; | 241 | sbi->work_queued = 0; |
| 241 | spin_unlock(&sbi->work_lock); | 242 | spin_unlock(&sbi->work_lock); |
| 242 | 243 | ||
| 243 | hfsplus_sync_fs(sbi->alloc_file->i_sb, 1); | 244 | err = hfsplus_sync_fs(sbi->alloc_file->i_sb, 1); |
| 245 | if (err) | ||
| 246 | printk(KERN_ERR "hfs: delayed sync fs err %d\n", err); | ||
| 244 | } | 247 | } |
| 245 | 248 | ||
| 246 | void hfsplus_mark_mdb_dirty(struct super_block *sb) | 249 | void hfsplus_mark_mdb_dirty(struct super_block *sb) |
