lkml.org 
[lkml]   [2001]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectUDF, UFS quota patch
  Hello,

Attached patch should fix quota in UDF & UFS (it's just the same
bug as was in ext2).
Honza

--
Jan Kara <jack@suse.cz>
SuSE Labs
Only in linux-2.4.10-pre11-fix/fs/udf: .balloc.c.swp
diff -ru -X /home/jack/.kerndiffexclude linux-2.4.10-pre11/fs/udf/ialloc.c linux-2.4.10-pre11-fix/fs/udf/ialloc.c
--- linux-2.4.10-pre11/fs/udf/ialloc.c Sat Sep 22 17:28:51 2001
+++ linux-2.4.10-pre11-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-pre11/fs/ufs/ialloc.c linux-2.4.10-pre11-fix/fs/ufs/ialloc.c
--- linux-2.4.10-pre11/fs/ufs/ialloc.c Sat Sep 22 17:41:36 2001
+++ linux-2.4.10-pre11-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;
\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.069 / U:5.340 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site