login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
27
Re: [PATCH 2/7] omfs: add inode routines
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andi Kleen <andi@...>
To: Bob Copeland <me@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>
Subject:
Re: [PATCH 2/7] omfs: add inode routines
Date: Thursday, March 27, 2008 - 2:13 am
Bob Copeland <me@bobcopeland.com> writes:
quoted text
> + > + bitmap_size = (sbi->s_num_blocks + 7) / 8; > + array_size = (bitmap_size + sb->s_blocksize - 1) / sb->s_blocksize; > + > + sbi->s_imap_size = array_size; > + sbi->s_imap = kzalloc(array_size * sizeof(unsigned long), GFP_KERNEL);
If the array can be really 300k you should probably have a vmalloc fallback here. -Andi --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2/7] omfs: add inode routines
, Bob Copeland
, (Wed Mar 26, 8:45 pm)
Re: [PATCH 2/7] omfs: add inode routines
, Pavel Machek
, (Fri Mar 28, 4:20 pm)
Re: [PATCH 2/7] omfs: add inode routines
, Bob Copeland
, (Sat Mar 29, 11:21 pm)
Re: [PATCH 2/7] omfs: add inode routines
, Arnd Bergmann
, (Thu Mar 27, 11:42 pm)
Re: [PATCH 2/7] omfs: add inode routines
, Bob Copeland
, (Fri Mar 28, 9:34 am)
Re: [PATCH 2/7] omfs: add inode routines
, Andi Kleen
, (Thu Mar 27, 2:13 am)
Re: [PATCH 2/7] omfs: add inode routines
, Bob Copeland
, (Thu Mar 27, 8:38 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
majkls
sys_chroot+sys_fchdir Fix
Paul Mackerras
Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
git-commits-head
:
Colocation donated by:
Who's online
There are currently
4 users
and
1102 guests
online.
Online users
roundtheruggedd
strcmp
johnpresley
zizzazz
Syndicate