]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: remove xfs_trans_ail_delete_bulk
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 18:24:42 +0000 (11:24 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Mon, 9 Apr 2018 23:02:32 +0000 (16:02 -0700)
commit3ac3dc91f6fc12437201c0c02a1d0bbf3d3af12d
treec625c0e4572b2b64b7759b86708540f0efa9be05
parentb6175ff1fc4474e972df7f3e4d96698a982eb05c
xfs: remove xfs_trans_ail_delete_bulk

[ Upstream commit 27af1bbf524459962d1477a38ac6e0b7f79aaecc ]

xfs_iflush_done uses an on-stack variable length array to pass the log
items to be deleted to xfs_trans_ail_delete_bulk.  On-stack VLAs are a
nasty gcc extension that can lead to unbounded stack allocations, but
fortunately we can easily avoid them by simply open coding
xfs_trans_ail_delete_bulk in xfs_iflush_done, which is the only caller
of it except for the single-item xfs_trans_ail_delete.

Orabug: 27609404
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: wen.gang.wang@oracle.com
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_trans_ail.c
fs/xfs/xfs_trans_priv.h