patch-2.4.11-dontuse linux/fs/udf/ialloc.c
Next file: linux/fs/udf/udfdecl.h
Previous file: linux/fs/udf/balloc.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Fri Oct 5 12:25:45 2001
- Orig file:
v2.4.10/linux/fs/udf/ialloc.c
- Orig date:
Tue Jul 3 17:08:21 2001
diff -u --recursive --new-file v2.4.10/linux/fs/udf/ialloc.c linux/fs/udf/ialloc.c
@@ -44,7 +44,7 @@
* Note: we must free any quota before locking the superblock,
* as writing the quota to disk may need the lock as well.
*/
- DQUOT_FREE_INODE(sb, inode);
+ DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
lock_super(sb);
@@ -70,7 +70,7 @@
udf_free_blocks(inode, UDF_I_LOCATION(inode), 0, 1);
}
-struct inode * udf_new_inode (const struct inode *dir, int mode, int * err)
+struct inode * udf_new_inode (struct inode *dir, int mode, int * err)
{
struct super_block *sb;
struct inode * inode;
@@ -153,9 +153,10 @@
mark_inode_dirty(inode);
unlock_super(sb);
- if (DQUOT_ALLOC_INODE(sb, inode))
+ if (DQUOT_ALLOC_INODE(inode))
{
- sb->dq_op->drop(inode);
+ DQUOT_DROP(inode);
+ inode->i_flags |= S_NOQUOTA;
inode->i_nlink = 0;
iput(inode);
*err = -EDQUOT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)