Quota inode counting bugfix in UDF, UFS

From: Jan Kara (jack@suse.cz)
Date: Fri Oct 05 2001 - 06:19:41 EST


  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/



This archive was generated by hypermail 2b29 : Sun Oct 07 2001 - 21:00:36 EST