Messages in this thread Patch in this message | | | Date | Tue, 16 Nov 2004 19:36:17 +0530 | From | Ravikiran G Thirumalai <> | Subject | [patch 3/4] Cleanup file_count usage: Redundant check based on file_count |
| |
The file_count check below seems to be redundant. Getting rid of it.
Signed-off-by: Ravikiran Thirumalai <kiran@in.ibm.com> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |