1. 29 7月, 2020 6 次提交
  2. 27 5月, 2020 4 次提交
  3. 05 5月, 2020 3 次提交
  4. 29 3月, 2020 1 次提交
  5. 26 3月, 2020 1 次提交
  6. 03 3月, 2020 2 次提交
  7. 14 11月, 2019 4 次提交
  8. 05 11月, 2019 1 次提交
  9. 27 8月, 2019 1 次提交
  10. 04 7月, 2019 1 次提交
  11. 03 7月, 2019 3 次提交
  12. 29 6月, 2019 1 次提交
  13. 23 4月, 2019 1 次提交
    • D
      xfs: widen inode delalloc block counter to 64-bits · 394aafdc
      Darrick J. Wong 提交于
      Widen the incore inode's i_delayed_blks counter to be a 64-bit integer.
      This is necessary to fix an integer overflow problem that can be
      reproduced easily now that we use the counter to track blocks that are
      assigned to the inode in memory but not on disk.  This includes actual
      delalloc reservations as well as real extents in the COW fork that
      are waiting to be remapped into the data fork.
      
      These 'delayed mapping' blocks can easily exceed 2^32 blocks if one
      creates a very large sparse file of size approximately 2^33 bytes with
      one byte written every 2^23 bytes, sets a very large COW extent size
      hint of 2^23 blocks, reflinks the first file into a second file, and
      then writes a single byte every 2^23 blocks in the original file.
      
      When this happens, we'll try to create approximately 1024 2^23 extent
      reservations in the COW fork, which will overflow the counter and cause
      problems.
      
      Note that on x64 we end up filling a 4-byte gap in the structure so this
      doesn't increase the incore size.
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Reviewed-by: NAllison Collins <allison.henderson@oracle.com>
      Reviewed-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      394aafdc
  14. 27 7月, 2018 1 次提交
  15. 07 6月, 2018 1 次提交
    • D
      xfs: convert to SPDX license tags · 0b61f8a4
      Dave Chinner 提交于
      Remove the verbose license text from XFS files and replace them
      with SPDX tags. This does not change the license of any of the code,
      merely refers to the common, up-to-date license files in LICENSES/
      
      This change was mostly scripted. fs/xfs/Makefile and
      fs/xfs/libxfs/xfs_fs.h were modified by hand, the rest were detected
      and modified by the following command:
      
      for f in `git grep -l "GNU General" fs/xfs/` ; do
      	echo $f
      	cat $f | awk -f hdr.awk > $f.new
      	mv -f $f.new $f
      done
      
      And the hdr.awk script that did the modification (including
      detecting the difference between GPL-2.0 and GPL-2.0+ licenses)
      is as follows:
      
      $ cat hdr.awk
      BEGIN {
      	hdr = 1.0
      	tag = "GPL-2.0"
      	str = ""
      }
      
      /^ \* This program is free software/ {
      	hdr = 2.0;
      	next
      }
      
      /any later version./ {
      	tag = "GPL-2.0+"
      	next
      }
      
      /^ \*\// {
      	if (hdr > 0.0) {
      		print "// SPDX-License-Identifier: " tag
      		print str
      		print $0
      		str=""
      		hdr = 0.0
      		next
      	}
      	print $0
      	next
      }
      
      /^ \* / {
      	if (hdr > 1.0)
      		next
      	if (hdr > 0.0) {
      		if (str != "")
      			str = str "\n"
      		str = str $0
      		next
      	}
      	print $0
      	next
      }
      
      /^ \*/ {
      	if (hdr > 0.0)
      		next
      	print $0
      	next
      }
      
      // {
      	if (hdr > 0.0) {
      		if (str != "")
      			str = str "\n"
      		str = str $0
      		next
      	}
      	print $0
      }
      
      END { }
      $
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
      Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
      0b61f8a4
  16. 16 5月, 2018 1 次提交
  17. 10 5月, 2018 8 次提交