diff options
author | Christoph Hellwig <hch@lst.de> | 2007-02-12 03:51:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:28 -0500 |
commit | fb58b7316a99703afb8d076b0e5f3e1e387e4b30 (patch) | |
tree | d2aabf3413fc3e94a6760c364caf0762915a6273 /fs/inode.c | |
parent | ea6f3281a145d16ed53e88b0627f78d5cde6068f (diff) |
[PATCH] move remove_dquot_ref to dqout.c
Remove_dquot_ref can move to dqout.c instead of beeing in inode.c under
#ifdef CONFIG_QUOTA. Also clean the resulting code up a tiny little bit by
testing sb->dq_op earlier - it's constant over a filesystems lifetime.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Jan Kara <jack@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/fs/inode.c b/fs/inode.c index e6d93070f140..5e32432a7608 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -1251,33 +1251,6 @@ int inode_needs_sync(struct inode *inode) | |||
1251 | 1251 | ||
1252 | EXPORT_SYMBOL(inode_needs_sync); | 1252 | EXPORT_SYMBOL(inode_needs_sync); |
1253 | 1253 | ||
1254 | /* | ||
1255 | * Quota functions that want to walk the inode lists.. | ||
1256 | */ | ||
1257 | #ifdef CONFIG_QUOTA | ||
1258 | |||
1259 | void remove_dquot_ref(struct super_block *sb, int type, | ||
1260 | struct list_head *tofree_head) | ||
1261 | { | ||
1262 | struct inode *inode; | ||
1263 | |||
1264 | if (!sb->dq_op) | ||
1265 | return; /* nothing to do */ | ||
1266 | spin_lock(&inode_lock); /* This lock is for inodes code */ | ||
1267 | |||
1268 | /* | ||
1269 | * We don't have to lock against quota code - test IS_QUOTAINIT is | ||
1270 | * just for speedup... | ||
1271 | */ | ||
1272 | list_for_each_entry(inode, &sb->s_inodes, i_sb_list) | ||
1273 | if (!IS_NOQUOTA(inode)) | ||
1274 | remove_inode_dquot_ref(inode, type, tofree_head); | ||
1275 | |||
1276 | spin_unlock(&inode_lock); | ||
1277 | } | ||
1278 | |||
1279 | #endif | ||
1280 | |||
1281 | int inode_wait(void *word) | 1254 | int inode_wait(void *word) |
1282 | { | 1255 | { |
1283 | schedule(); | 1256 | schedule(); |