[patch 3/4] Cleanup file_count usage: Redundant check based on file_count

From: Ravikiran G Thirumalai
Date: Tue Nov 16 2004 - 09:25:17 EST


The file_count check below seems to be redundant. Getting rid of it.

Signed-off-by: Ravikiran Thirumalai <kiran@xxxxxxxxxx>
---
diff -ruN -X dontdiff2 linux-2.6.9/fs/super.c f_count-2.6.9/fs/super.c
--- linux-2.6.9/fs/super.c 2004-10-19 03:24:07.000000000 +0530
+++ f_count-2.6.9/fs/super.c 2004-11-15 14:52:06.000000000 +0530
@@ -503,7 +503,7 @@

file_list_lock();
list_for_each_entry(f, &sb->s_files, f_list) {
- if (S_ISREG(f->f_dentry->d_inode->i_mode) && file_count(f))
+ if (S_ISREG(f->f_dentry->d_inode->i_mode))
f->f_mode &= ~FMODE_WRITE;
}
file_list_unlock();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/