tree 1101585d46faf72c0bec070c8206f20455651805
parent e072c6f2af57fb8ad9e0f29bfff3f79edf7bdd55
author Jan Kara <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:46 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:25:46 -0700
[PATCH] quota: fix possible oops on quotaoff
Remove dquot structures from quota file on quotaon - quota code does not
expect them to be there.
Signed-off-by: Jan Kara <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
dquot.c | 1 +
1 files changed, 1 insertion(+)
Index: fs/dquot.c
===================================================================
--- 9d72262a63754b39df4ebfed5bc74855f0408c3a/fs/dquot.c (mode:100644
sha1:11048e0b32c92f3ebe8ec983c9ae118de5606921)
+++ 1101585d46faf72c0bec070c8206f20455651805/fs/dquot.c (mode:100644
sha1:3995ce7907ccbcfb276fa694cfa4bc98ddd8cc69)
@@ -1443,6 +1443,7 @@
oldflags = inode->i_flags & (S_NOATIME | S_IMMUTABLE | S_NOQUOTA);
inode->i_flags |= S_NOQUOTA | S_NOATIME | S_IMMUTABLE;
up_write(&dqopt->dqptr_sem);
+ sb->dq_op->drop(inode);
error = -EIO;
dqopt->files[type] = igrab(inode);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html