]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid synchronous transactions when deleting attr blocks
authorChristoph Hellwig <hch@infradead.org>
Sat, 27 Aug 2011 14:45:11 +0000 (14:45 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:01 +0000 (21:15 -0500)
commit16158c660bd9c1a6e2830aed71c9a1e62d2aa724
treec39d3e719c396667804a50afd37d7f8364f84388
parent87758c268f077a18d1179bb219b4c537f4eec0ec
xfs: avoid synchronous transactions when deleting attr blocks

Currently xfs_attr_inactive causes a synchronous transactions if we are
removing a file that has any extents allocated to the attribute fork, and
thus makes XFS extremely slow at removing files with out of line extended
attributes. The code looks a like a relict from the days before the busy
extent list, but with the busy extent list we avoid reusing data and attr
extents that have been freed but not commited yet, so this code is just
as superflous as the synchronous transactions for data blocks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_attr.c
fs/xfs/xfs_bmap.c