On Mon, 25 Feb 2008, Jan Kara wrote:Why can't we do just UDF: Optimize stack usage Signed-off-by: Jiri Kosina <jkosina@suse.cz> diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 112a5fb..706a2b5 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -336,7 +336,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir, { struct super_block *sb = dir->i_sb; struct fileIdentDesc *fi = NULL; - char name[UDF_NAME_LEN], fname[UDF_NAME_LEN]; + char *name, *fname; int namelen; loff_t f_pos; int flen; @@ -352,6 +352,14 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir, struct extent_position epos = {}; struct udf_inode_info *dinfo; + name = kmalloc(sizeof(char) * UDF_NAME_LEN, GFP_KERNEL); + fname = kmalloc(sizeof(char) * UDF_NAME_LEN, GFP_KERNEL); + + if (!name || !fname) { + *err = -ENOMEM; + return NULL; + } + if (dentry) { if (!dentry->d_name.len) { *err = -EINVAL; diff --git a/fs/udf/super.c b/fs/udf/super.c index f3ac4ab..42e3ba8 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -1345,7 +1345,7 @@ static void udf_load_logicalvolint(struct super_block *sb, kernel_extent_ad loc) * July 1, 1997 - Andrew E. Mileski * Written, tested, and released. */ -static int udf_process_sequence(struct super_block *sb, long block, +static int noinline udf_process_sequence(struct super_block *sb, long block, long lastblock, kernel_lb_addr *fileset) { struct buffer_head *bh = NULL; --
| Peter Zijlstra | Re: Quad core CPUs loaded at only 50% when running a CPU and mmap intensive multi-... |
| Satyam Sharma | [-mm patchset] War on warnings |
| Izik Eidus | [PATCH 0/4] ksm - dynamic page sharing driver for linux |
| Renato S. Yamane | Error -71 on device descriptor read/all |
git: | |
| Martin Langhoff | Handling large files with GIT |
| Wincent Colaiuta | Rebase/cherry-picking idea |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Joe Fiorini | Undo git-rm without commit? |
| Christian Weisgerber | Re: libiconv problem |
| Peter | OpenBSD as Virtualbox guest |
| Brandon Lee | DELL PERC 5iR slow performance |
| Martin Toft | Trying to compile cwm on Linux |
| Alexey Dobriyan | [PATCH 01/53] xfrm: initialise xfrm_policy_gc_work statically |
| Arjan van de Ven | Printing the driver name as part of the netdev watchdog message |
| Dushan Tcholich | Re: ksoftirqd high cpu load on kernels 2.6.24 to 2.6.27-rc1-mm1 |
| Inaky Perez-Gonzalez | [PATCH 03/39] wimax: constants and definitions to interact with user space |
