patch-2.4.11-dontuse linux/fs/ufs/ialloc.c
Next file: linux/fs/umsdos/inode.c
Previous file: linux/fs/ufs/balloc.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Fri Oct 5 12:25:25 2001
- Orig file:
v2.4.10/linux/fs/ufs/ialloc.c
- Orig date:
Thu Nov 16 13:18:26 2000
diff -u --recursive --new-file v2.4.10/linux/fs/ufs/ialloc.c linux/fs/ufs/ialloc.c
@@ -100,7 +100,7 @@
is_directory = S_ISDIR(inode->i_mode);
- DQUOT_FREE_INODE(sb, inode);
+ DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
clear_inode (inode);
@@ -278,8 +278,9 @@
unlock_super (sb);
- if(DQUOT_ALLOC_INODE(sb, inode)) {
- sb->dq_op->drop(inode);
+ if (DQUOT_ALLOC_INODE(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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)