Messages in this thread Patch in this message | | | Date | Mon, 15 Nov 2004 20:43:20 +0000 (GMT) | From | Hugh Dickins <> | Subject | [PATCH] tmpfs free_inodes leak |
| |
When new_inode failed, shmem_get_inode forgot to restore free_inodes.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
--- 2.6.10-rc2/mm/shmem.c 2004-11-15 16:21:24.000000000 +0000 +++ linux/mm/shmem.c 2004-11-15 19:13:10.535493992 +0000 @@ -1314,6 +1314,10 @@ shmem_get_inode(struct super_block *sb, case S_IFLNK: break; } + } else if (sbinfo) { + spin_lock(&sbinfo->stat_lock); + sbinfo->free_inodes++; + spin_unlock(&sbinfo->stat_lock); } return inode; } - 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/
| |