aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-04-16 23:07:36 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2018-05-02 09:21:33 -0700
commit021ba8e98fe5c6691b3cc3669faafa02403aa211 (patch)
tree9b4b92b15794cb1e2c7a70f7dae329b3923679b2 /fs/inode.c
parentxfs: don't fail when converting shortform attr to long form during ATTR_REPLACE (diff)
downloadlinux-dev-021ba8e98fe5c6691b3cc3669faafa02403aa211.tar.xz
linux-dev-021ba8e98fe5c6691b3cc3669faafa02403aa211.zip
xfs: cap the length of deduplication requests
Since deduplication potentially has to read in all the pages in both files in order to compare the contents, cap the deduplication request length at MAX_RW_COUNT/2 (roughly 1GB) so that we have /some/ upper bound on the request length and can't just lock up the kernel forever. Found by running generic/304 after commit 1ddae54555b62 ("common/rc: add missing 'local' keywords"). Reported-by: matorola@gmail.com Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions