summaryrefslogtreecommitdiff
path: root/fs/ocfs2/dcache.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2020-06-29 14:47:19 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-06 10:46:57 -0700
commit94b941fd7a98cebd6b77b8925c54ef76bbf7473f (patch)
treedda99da52df61b529be15b5c0a57efee45970914 /fs/ocfs2/dcache.c
parentaa5d0ba0b5dbb5105276214c7f9124855b20f75e (diff)
downloadlinux-94b941fd7a98cebd6b77b8925c54ef76bbf7473f.tar.gz
linux-94b941fd7a98cebd6b77b8925c54ef76bbf7473f.tar.bz2
linux-94b941fd7a98cebd6b77b8925c54ef76bbf7473f.zip
xfs: only reserve quota blocks if we're mapping into a hole
When logging quota block count updates during a reflink operation, we only log the /delta/ of the block count changes to the dquot. Since we now know ahead of time the extent type of both dmap and smap (and that they have the same length), we know that we only need to reserve quota blocks for dmap's blockcount if we're mapping it into a hole. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/ocfs2/dcache.c')
0 files changed, 0 insertions, 0 deletions