Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312969
b: refs/heads/master
c: 6eedc70
h: refs/heads/master
i:
  312967: 9bb425a
v: v3
  • Loading branch information
Jan Kara authored and Al Viro committed Jul 22, 2012
1 parent 9127328 commit 7abcfa1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e9ad5f408889db6038a59b38ede29ff1ba9ef2f
refs/heads/master: 6eedc70150d55b5885800eb6664ea226dc2cb66f
5 changes: 5 additions & 0 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,8 @@ void writeback_inodes_sb_nr(struct super_block *sb,
.reason = reason,
};

if (sb->s_bdi == &noop_backing_dev_info)
return;
WARN_ON(!rwsem_is_locked(&sb->s_umount));
bdi_queue_work(sb->s_bdi, &work);
wait_for_completion(&done);
Expand Down Expand Up @@ -1398,6 +1400,9 @@ void sync_inodes_sb(struct super_block *sb)
.reason = WB_REASON_SYNC,
};

/* Nothing to do? */
if (sb->s_bdi == &noop_backing_dev_info)
return;
WARN_ON(!rwsem_is_locked(&sb->s_umount));

bdi_queue_work(sb->s_bdi, &work);
Expand Down
7 changes: 0 additions & 7 deletions trunk/fs/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@
*/
static int __sync_filesystem(struct super_block *sb, int wait)
{
/*
* This should be safe, as we require bdi backing to actually
* write out data in the first place
*/
if (sb->s_bdi == &noop_backing_dev_info)
return 0;

if (sb->s_qcop && sb->s_qcop->quota_sync)
sb->s_qcop->quota_sync(sb, -1, wait);

Expand Down

0 comments on commit 7abcfa1

Please sign in to comment.