diff options
author | Christoph Hellwig <hch@lst.de> | 2019-10-30 12:25:00 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-03 10:22:30 -0800 |
commit | fd638f1de1f3f736ea4debb3582999ea95506e0a (patch) | |
tree | 1b7052433849ce6441b1da1bbe4d1627df1e07a6 /fs/xfs/libxfs/xfs_alloc.c | |
parent | be6cacbeea8c562a06e9a03c95e3fdee065d1b7b (diff) | |
download | linux-fd638f1de1f3f736ea4debb3582999ea95506e0a.tar.gz linux-fd638f1de1f3f736ea4debb3582999ea95506e0a.tar.bz2 linux-fd638f1de1f3f736ea4debb3582999ea95506e0a.zip |
xfs: move extent zeroing to xfs_bmapi_allocate
Move the extent zeroing case there for the XFS_BMAPI_ZERO flag outside
the low-level allocator and into xfs_bmapi_allocate, where is still
is in transaction context, but outside the very lowlevel code where
it doesn't belong.
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 84866c195bfc..0539d61ff12c 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c @@ -3084,13 +3084,6 @@ xfs_alloc_vextent( args->len); #endif - /* Zero the extent if we were asked to do so */ - if (args->datatype & XFS_ALLOC_USERDATA_ZERO) { - error = xfs_zero_extent(args->ip, args->fsbno, args->len); - if (error) - goto error0; - } - } xfs_perag_put(args->pag); return 0; |