16 Sep, 2020

4 commits

  • Redesign the ondisk inode timestamps to be a simple unsigned 64-bit
    counter of nanoseconds since 14 Dec 1901 (i.e. the minimum time in the
    32-bit unix time epoch). This enables us to handle dates up to 2486,
    which solves the y2038 problem.

    Signed-off-by: Darrick J. Wong
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Gao Xiang
    Reviewed-by: Dave Chinner

    Darrick J. Wong
     
  • Redefine xfs_ictimestamp_t as a uint64_t typedef in preparation for the
    bigtime functionality. Preserve the legacy structure format so that we
    can let the compiler take care of the masking and shifting.

    Signed-off-by: Darrick J. Wong
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Gao Xiang
    Reviewed-by: Dave Chinner

    Darrick J. Wong
     
  • Redefine xfs_timestamp_t as a __be64 typedef in preparation for the
    bigtime functionality. Preserve the legacy structure format so that we
    can let the compiler take care of masking and shifting.

    Signed-off-by: Darrick J. Wong
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Gao Xiang
    Reviewed-by: Dave Chinner

    Darrick J. Wong
     
  • Move this function to xfs_inode_item_recover.c since there's only one
    caller of it.

    Signed-off-by: Darrick J. Wong
    Reviewed-by: Christoph Hellwig
    Reviewed-by: Allison Collins
    Reviewed-by: Gao Xiang
    Reviewed-by: Dave Chinner

    Darrick J. Wong
     

07 Jul, 2020

1 commit

  • Log recovery has it's own buffer write completion handler for
    buffers that it directly recovers. Convert these to direct calls by
    flagging these buffers as being log recovery buffers. The flag will
    get cleared by the log recovery IO completion routine, so it will
    never leak out of log recovery.

    Signed-off-by: Dave Chinner
    Reviewed-by: Brian Foster
    Reviewed-by: Darrick J. Wong
    Signed-off-by: Darrick J. Wong

    Dave Chinner
     

20 May, 2020

2 commits

  • Call the data/attr local fork verifiers as soon as we are ready for them.
    This keeps them close to the code setting up the forks, and avoids a
    few branches later on. Also open code xfs_inode_verify_forks in the
    only remaining caller.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Brian Foster
    Reviewed-by: Darrick J. Wong
    Signed-off-by: Darrick J. Wong

    Christoph Hellwig
     
  • We always need to fill out the fork structures when reading the inode,
    so call xfs_iformat_fork from the tail of xfs_inode_from_disk.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Brian Foster
    Reviewed-by: Darrick J. Wong
    Signed-off-by: Darrick J. Wong

    Christoph Hellwig
     

08 May, 2020

3 commits