]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remove XFS_MOUNT_RETERR
authorJie Liu <jeff.liu@oracle.com>
Thu, 2 May 2013 11:27:47 +0000 (19:27 +0800)
committerBen Myers <bpm@sgi.com>
Wed, 19 Jun 2013 19:54:17 +0000 (14:54 -0500)
commitf597903a4dc1e68a60d00b134d418c05d03fde43
tree7184b8d6abaec378fc41d007fe45dc1abfce99e5
parent7c41a0716767fcbd26273a40b9d8c8cd7ff8a256
xfs: Remove XFS_MOUNT_RETERR

XFS_MOUNT_RETERR is going to be set at xfs_parseargs() if
mp->m_dalign is enabled, so any time we enter "if (mp->m_dalign)"
branch in xfs_update_alignment(), XFS_MOUNT_RETERR is set and so
we always be emitting a warning and returning an error.

Hence, we can remove it and get rid of a couple of redundant
check up against it at xfs_upate_alignment().

Thanks Dave Chinner for the suggestions of simplify the code
in xfs_parseargs().

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c