diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-06 17:58:33 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-11-07 22:00:54 +0100 |
commit | 120254608f042e01e0ad1da9285006f122943a1e (patch) | |
tree | 5f85ef42fce4a872d509fc19732ab0514ea384a6 /fs/xfs/xfs_buf_item.c | |
parent | xfs: null out bma->prev if no previous extent (diff) | |
download | linux-120254608f042e01e0ad1da9285006f122943a1e.tar.xz linux-120254608f042e01e0ad1da9285006f122943a1e.zip |
xfs: "optimize" buffer item log segment bitmap setting
Optimize the setting of full words of bits in xfs_buf_item_log_segment.
The optimization is purely within the bug triage process. No functional
changes.
Coverity-id: 1446793
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r-- | fs/xfs/xfs_buf_item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index d74fbd1e9d3e..6b69e6137b2b 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -851,7 +851,7 @@ xfs_buf_item_log_segment( * first_bit and last_bit. */ while ((bits_to_set - bits_set) >= NBWORD) { - *wordp |= 0xffffffff; + *wordp = 0xffffffff; bits_set += NBWORD; wordp++; } |