]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove custom do_div implementations
authorEric Sandeen <sandeen@redhat.com>
Tue, 11 Apr 2017 17:45:17 +0000 (10:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Apr 2017 15:42:51 +0000 (08:42 -0700)
commit53a847fc294d1284b163ccfc03526da5d87e216c
treec351bfcb2e51e965c8733460c597ff03f7464fef
parent7237f6d99ae2a04e345ce598b1586efa44075672
xfs: remove custom do_div implementations

Long ago, all this gunk was added with a lament about problems
with gcc's do_div, and a fun recommendation in the changelog:

 egcs-2.91.66 is the recommended compiler version for building XFS.

All this special stuff was needed to work around an old gcc bug,
apparently, and it's been there ever since.

There should be no need for this anymore, so remove it.

Remove the special 32-bit xfs_do_mod as well; just let the
kernel's do_div() handle all this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_linux.h