tree: git://git.cmpxchg.org/linux-mmotm.git master head: c64429bcc60a702f19f5cfdb5c39277863278a8c commit: 98bc024d7e86a52b7c6266f7bf3bac93626f002b [396/417] ocfs2: add functions to add and remove inode in orphan dir config: s390-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 98bc024d7e86a52b7c6266f7bf3bac93626f002b # save the attached .config to linux build tree make.cross ARCH=s390 All warnings: fs/ocfs2/namei.c: In function 'ocfs2_orphan_del': >> fs/ocfs2/namei.c:2365:1: warning: 'ocfs2_orphan_del' uses dynamic stack allocation } ^ vim +/ocfs2_orphan_del +2365 fs/ocfs2/namei.c ccd979bd Mark Fasheh 2005-12-15 2349 goto leave; ccd979bd Mark Fasheh 2005-12-15 2350 } ccd979bd Mark Fasheh 2005-12-15 2351 ccd979bd Mark Fasheh 2005-12-15 2352 /* do the i_nlink dance! :) */ ccd979bd Mark Fasheh 2005-12-15 2353 orphan_fe = (struct ocfs2_dinode *) orphan_dir_bh->b_data; ccd979bd Mark Fasheh 2005-12-15 2354 if (S_ISDIR(inode->i_mode)) 198a1ca3 Mark Fasheh 2008-11-20 2355 ocfs2_add_links_count(orphan_fe, -1); bfe86848 Miklos Szeredi 2011-10-28 2356 set_nlink(orphan_dir_inode, ocfs2_read_links_count(orphan_fe)); ec20cec7 Joel Becker 2010-03-19 2357 ocfs2_journal_dirty(handle, orphan_dir_bh); ccd979bd Mark Fasheh 2005-12-15 2358 ccd979bd Mark Fasheh 2005-12-15 2359 leave: 4a12ca3a Mark Fasheh 2008-11-12 2360 ocfs2_free_dir_lookup_result(&lookup); ccd979bd Mark Fasheh 2005-12-15 2361 c1e8d35e Tao Ma 2011-03-07 2362 if (status) c1e8d35e Tao Ma 2011-03-07 2363 mlog_errno(status); ccd979bd Mark Fasheh 2005-12-15 2364 return status; ccd979bd Mark Fasheh 2005-12-15 @2365 } ccd979bd Mark Fasheh 2005-12-15 2366 97b8f4a9 Mark Fasheh 2010-08-13 2367 /** 25985edc Lucas De Marchi 2011-03-30 2368 * ocfs2_prep_new_orphaned_file() - Prepare the orphan dir to receive a newly 97b8f4a9 Mark Fasheh 2010-08-13 2369 * allocated file. This is different from the typical 'add to orphan dir' 97b8f4a9 Mark Fasheh 2010-08-13 2370 * operation in that the inode does not yet exist. This is a problem because 97b8f4a9 Mark Fasheh 2010-08-13 2371 * the orphan dir stringifies the inode block number to come up with it's 97b8f4a9 Mark Fasheh 2010-08-13 2372 * dirent. Obviously if the inode does not yet exist we have a chicken and egg 97b8f4a9 Mark Fasheh 2010-08-13 2373 * problem. This function works around it by calling deeper into the orphan :::::: The code at line 2365 was first introduced by commit :::::: ccd979bdbce9fba8412beb3f1de68a9d0171b12c [PATCH] OCFS2: The Second Oracle Cluster Filesystem :::::: TO: Mark Fasheh :::::: CC: Joel Becker --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation