Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42921
b: refs/heads/master
c: c949d4e
h: refs/heads/master
i:
  42919: 0ebb3d6
v: v3
  • Loading branch information
Jiri Kosina authored and Linus Torvalds committed Dec 7, 2006
1 parent 6c573d9 commit bbf302a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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: 595142e0490918af5ffae5a833a2b2acd7097c02
refs/heads/master: c949d4eb40ce021b1abc3b63af23aa535662cb17
7 changes: 4 additions & 3 deletions trunk/fs/autofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ void autofs_kill_sb(struct super_block *sb)
/*
* In the event of a failure in get_sb_nodev the superblock
* info is not present so nothing else has been setup, so
* just exit when we are called from deactivate_super.
* just call kill_anon_super when we are called from
* deactivate_super.
*/
if (!sbi)
return;
goto out_kill_sb;

if ( !sbi->catatonic )
autofs_catatonic_mode(sbi); /* Free wait queues, close pipe */
Expand All @@ -44,6 +45,7 @@ void autofs_kill_sb(struct super_block *sb)

kfree(sb->s_fs_info);

out_kill_sb:
DPRINTK(("autofs: shutting down\n"));
kill_anon_super(sb);
}
Expand Down Expand Up @@ -209,7 +211,6 @@ int autofs_fill_super(struct super_block *s, void *data, int silent)
fail_free:
kfree(sbi);
s->s_fs_info = NULL;
kill_anon_super(s);
fail_unlock:
return -EINVAL;
}
Expand Down
7 changes: 4 additions & 3 deletions trunk/fs/autofs4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ void autofs4_kill_sb(struct super_block *sb)
/*
* In the event of a failure in get_sb_nodev the superblock
* info is not present so nothing else has been setup, so
* just exit when we are called from deactivate_super.
* just call kill_anon_super when we are called from
* deactivate_super.
*/
if (!sbi)
return;
goto out_kill_sb;

sb->s_fs_info = NULL;

Expand All @@ -167,6 +168,7 @@ void autofs4_kill_sb(struct super_block *sb)

kfree(sbi);

out_kill_sb:
DPRINTK("shutting down");
kill_anon_super(sb);
}
Expand Down Expand Up @@ -426,7 +428,6 @@ int autofs4_fill_super(struct super_block *s, void *data, int silent)
fail_free:
kfree(sbi);
s->s_fs_info = NULL;
kill_anon_super(s);
fail_unlock:
return -EINVAL;
}
Expand Down

0 comments on commit bbf302a

Please sign in to comment.