Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126254
b: refs/heads/master
c: 856bf4d
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Jan 6, 2009
1 parent cd4a4df commit cdb36a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 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: 38f21977663126fef53f5585e7f1653d8ebe55c4
refs/heads/master: 856bf4d717feb8c55d4e2f817b71ebb70cfbc67b
20 changes: 1 addition & 19 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,18 +652,6 @@ void sync_inodes_sb(struct super_block *sb, int wait)
sync_sb_inodes(sb, &wbc);
}

/*
* Rather lame livelock avoidance.
*/
static void set_sb_syncing(int val)
{
struct super_block *sb;
spin_lock(&sb_lock);
list_for_each_entry_reverse(sb, &super_blocks, s_list)
sb->s_syncing = val;
spin_unlock(&sb_lock);
}

/**
* sync_inodes - writes all inodes to disk
* @wait: wait for completion
Expand All @@ -690,9 +678,6 @@ static void __sync_inodes(int wait)
spin_lock(&sb_lock);
restart:
list_for_each_entry(sb, &super_blocks, s_list) {
if (sb->s_syncing)
continue;
sb->s_syncing = 1;
sb->s_count++;
spin_unlock(&sb_lock);
down_read(&sb->s_umount);
Expand All @@ -710,13 +695,10 @@ static void __sync_inodes(int wait)

void sync_inodes(int wait)
{
set_sb_syncing(0);
__sync_inodes(0);

if (wait) {
set_sb_syncing(0);
if (wait)
__sync_inodes(1);
}
}

/**
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,6 @@ struct super_block {
struct rw_semaphore s_umount;
struct mutex s_lock;
int s_count;
int s_syncing;
int s_need_sync_fs;
atomic_t s_active;
#ifdef CONFIG_SECURITY
Expand Down

0 comments on commit cdb36a5

Please sign in to comment.