Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96470
b: refs/heads/master
c: 9377abd
h: refs/heads/master
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed May 13, 2008
1 parent d73f8ac commit d509de4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb45d64224e5cafe8c8e0d18a20da998e5a7dc93
refs/heads/master: 9377abd026bf9bde7db90dac09170034bf6d1cbf
10 changes: 10 additions & 0 deletions trunk/fs/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,16 @@ int vfs_quota_off(struct super_block *sb, int type, int remount)

/* We need to serialize quota_off() for device */
mutex_lock(&dqopt->dqonoff_mutex);

/*
* Skip everything if there's nothing to do. We have to do this because
* sometimes we are called when fill_super() failed and calling
* sync_fs() in such cases does no good.
*/
if (!sb_any_quota_enabled(sb) && !sb_any_quota_suspended(sb)) {
mutex_unlock(&dqopt->dqonoff_mutex);
return 0;
}
for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
toputinode[cnt] = NULL;
if (type != -1 && cnt != type)
Expand Down

0 comments on commit d509de4

Please sign in to comment.