lkml.org 
[lkml]   [2000]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectSmall cleanup in fs/ext2/ialloc.c
  Hello.

Following patch against 2.4.0-test7 does a small cleanup in ext2/ialloc.c.
ext2_new_inode() now initializes quota on inode - I think this is more error
proof than initializing quota all over the place. Now it also uses DQUOT_DROP()
macro (which is usual way) instead of direct function call.

Honza
--- fs/ext2/ialloc.c Wed Jun 28 20:32:09 2000
+++ fs/ext2/ialloc.c Sat Jul 22 23:53:51 2000
@@ -459,8 +459,9 @@
mark_inode_dirty(inode);

unlock_super (sb);
+ DQUOT_INIT(inode);
if(DQUOT_ALLOC_INODE(sb, inode)) {
- sb->dq_op->drop(inode);
+ DQUOT_DROP(inode);
inode->i_nlink = 0;
iput(inode);
*err = -EDQUOT;
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.022 / U:2.144 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site