lkml.org 
[lkml]   [2001]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectQuota inode counting bugfix in UDF, UFS
  Hello,

I'm sending you patch which should fix problems with inode counting
in UDF and UFS. Please apply. I already sent you this patch a few days
ago but it doesn't seem to get it into kernel...

Honza

--
Jan Kara <jack@suse.cz>
SuSE CR Labs

-----------------------------<cut>-------------------------------------
diff -ru -X /home/jack/.kerndiffexclude linux-2.4.10/fs/udf/ialloc.c linux-2.4.10-fix/fs/udf/ialloc.c
--- linux-2.4.10/fs/udf/ialloc.c Sat Sep 22 17:28:51 2001
+++ linux-2.4.10-fix/fs/udf/ialloc.c Sat Sep 22 17:31:20 2001
@@ -155,7 +155,8 @@
unlock_super(sb);
if (DQUOT_ALLOC_INODE(sb, inode))
{
- sb->dq_op->drop(inode);
+ DQUOT_DROP(inode);
+ inode->i_flags |= S_NOQUOTA;
inode->i_nlink = 0;
iput(inode);
*err = -EDQUOT;
diff -ru -X /home/jack/.kerndiffexclude linux-2.4.10/fs/ufs/ialloc.c linux-2.4.10-fix/fs/ufs/ialloc.c
--- linux-2.4.10/fs/ufs/ialloc.c Sat Sep 22 17:41:36 2001
+++ linux-2.4.10-fix/fs/ufs/ialloc.c Sat Sep 22 17:42:10 2001
@@ -279,7 +279,8 @@
unlock_super (sb);

if(DQUOT_ALLOC_INODE(sb, inode)) {
- sb->dq_op->drop(inode);
+ DQUOT_DROP(inode);
+ inode->i_flags |= S_NOQUOTA;
inode->i_nlink = 0;
iput(inode);
*err = -EDQUOT;
@@ -293,6 +294,7 @@

failed:
unlock_super (sb);
+ make_bad_inode(inode);
iput (inode);
UFSD(("EXIT (FAILED)\n"))
return NULL;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:04    [W:0.053 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site