[patch 0/2] xfs: xfs_tosspages() bug

adahl at sgi.com adahl at sgi.com
Thu Nov 8 16:23:15 CST 2012


Hi everyone,

This patch set fixes a bug in xfs with the xfs_tosspages() function and adds a tosspages test to xfstests.

xfs_tosspages() tries to avoid tossing a partial tail page, but it gets the calculation wrong.  As a result, if we pass in an interval [0, PAGE-SIZE-1] we end up tossing all pages.  This patch set resolves this issue.

Thanks,

Andrew 





More information about the xfs mailing list