]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove unnecessary ternary from xfs_create
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 27 Mar 2020 15:28:39 +0000 (08:28 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 28 Mar 2020 16:40:11 +0000 (09:40 -0700)
commit7d85527061f0b07b1885256043e167abad21f1b5
tree1965fd2760cd77677f16b7db5e88e0f918ecec7e
parent608a625c90c80e97fdeeb9dbc3951881a50d2b6f
xfs: remove unnecessary ternary from xfs_create

Since the "no-allocation" reservations for file creations has
been removed, the resblks value should be larger than zero, so
remove unnecessary ternary conditional.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
[darrick: s/judgment/ternary/]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_inode.c