aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inode.c')
-rw-r--r--fs/inode.c33
1 files changed, 3 insertions, 30 deletions
diff --git a/fs/inode.c b/fs/inode.c
index e6d93070f140..5abb097ab1b0 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1000,7 +1000,7 @@ EXPORT_SYMBOL(remove_inode_hash);
1000 */ 1000 */
1001void generic_delete_inode(struct inode *inode) 1001void generic_delete_inode(struct inode *inode)
1002{ 1002{
1003 struct super_operations *op = inode->i_sb->s_op; 1003 const struct super_operations *op = inode->i_sb->s_op;
1004 1004
1005 list_del_init(&inode->i_list); 1005 list_del_init(&inode->i_list);
1006 list_del_init(&inode->i_sb_list); 1006 list_del_init(&inode->i_sb_list);
@@ -1093,7 +1093,7 @@ EXPORT_SYMBOL_GPL(generic_drop_inode);
1093 */ 1093 */
1094static inline void iput_final(struct inode *inode) 1094static inline void iput_final(struct inode *inode)
1095{ 1095{
1096 struct super_operations *op = inode->i_sb->s_op; 1096 const struct super_operations *op = inode->i_sb->s_op;
1097 void (*drop)(struct inode *) = generic_drop_inode; 1097 void (*drop)(struct inode *) = generic_drop_inode;
1098 1098
1099 if (op && op->drop_inode) 1099 if (op && op->drop_inode)
@@ -1113,7 +1113,7 @@ static inline void iput_final(struct inode *inode)
1113void iput(struct inode *inode) 1113void iput(struct inode *inode)
1114{ 1114{
1115 if (inode) { 1115 if (inode) {
1116 struct super_operations *op = inode->i_sb->s_op; 1116 const struct super_operations *op = inode->i_sb->s_op;
1117 1117
1118 BUG_ON(inode->i_state == I_CLEAR); 1118 BUG_ON(inode->i_state == I_CLEAR);
1119 1119
@@ -1251,33 +1251,6 @@ int inode_needs_sync(struct inode *inode)
1251 1251
1252EXPORT_SYMBOL(inode_needs_sync); 1252EXPORT_SYMBOL(inode_needs_sync);
1253 1253
1254/*
1255 * Quota functions that want to walk the inode lists..
1256 */
1257#ifdef CONFIG_QUOTA
1258
1259void 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
1281int inode_wait(void *word) 1254int inode_wait(void *word)
1282{ 1255{
1283 schedule(); 1256 schedule();