1. 12 2月, 2021 1 次提交
    • B
      xfs: consider shutdown in bmapbt cursor delete assert · 1cd738b1
      Brian Foster 提交于
      The assert in xfs_btree_del_cursor() checks that the bmapbt block
      allocation field has been handled correctly before the cursor is
      freed. This field is used for accurate calculation of indirect block
      reservation requirements (for delayed allocations), for example.
      generic/019 reproduces a scenario where this assert fails because
      the filesystem has shutdown while in the middle of a bmbt record
      insertion. This occurs after a bmbt block has been allocated via the
      cursor but before the higher level bmap function (i.e.
      xfs_bmap_add_extent_hole_real()) completes and resets the field.
      
      Update the assert to accommodate the transient state if the
      filesystem has shutdown. While here, clean up the indentation and
      comments in the function.
      Signed-off-by: NBrian Foster <bfoster@redhat.com>
      Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
      Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
      1cd738b1
  2. 11 2月, 2021 2 次提交
  3. 10 2月, 2021 1 次提交
  4. 05 2月, 2021 1 次提交
    • D
      xfs: fix incorrect root dquot corruption error when switching group/project quota types · 45068063
      Darrick J. Wong 提交于
      While writing up a regression test for broken behavior when a chprojid
      request fails, I noticed that we were logging corruption notices about
      the root dquot of the group/project quota file at mount time when
      testing V4 filesystems.
      
      In commit afeda600, I was trying to improve ondisk dquot validation
      by making sure that when we load an ondisk dquot into memory on behalf
      of an incore dquot, the dquot id and type matches.  Unfortunately, I
      forgot that V4 filesystems only have two quota files, and can switch
      that file between group and project quota types at mount time.  When we
      perform that switch, we'll try to load the default quota limits from the
      root dquot prior to running quotacheck and log a corruption error when
      the types don't match.
      
      This is inconsequential because quotacheck will reset the second quota
      file as part of doing the switch, but we shouldn't leave scary messages
      in the kernel log.
      
      Fixes: afeda600 ("xfs: validate ondisk/incore dquot flags")
      Signed-off-by: NDarrick J. Wong <djwong@kernel.org>
      Reviewed-by: NBrian Foster <bfoster@redhat.com>
      Reviewed-by: NChandan Babu R <chandanrlinux@gmail.com>
      45068063
  5. 04 2月, 2021 35 次提交