]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: rewrite xfs_dq_get_next_id using xfs_iext_lookup_extent
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Jun 2017 19:28:36 +0000 (12:28 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 2 Jul 2017 04:09:33 +0000 (21:09 -0700)
commit6cf680d303450f639aa4f07a6359c71057e77eec
treed5fbd300007d1e7bcc88eb93c14c45d89206e03a
parentf062ce1b616c96d78f271c68a9e73b27d5b8fd1d
xfs: rewrite xfs_dq_get_next_id using xfs_iext_lookup_extent

This goes straight to a single lookup in the extent list and avoids a
roundtrip through two layers that don't add any value for the simple
quoata file that just has data or holes and no page cache, delayed
allocation, unwritten extent or COW fork (which btw, doesn't seem to
be handled by the existing SEEK HOLE/DATA code).

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_dquot.c