Skip to content

Commit b11ed35

Browse files
Christoph HellwigChandan Babu R
authored andcommitted
xfs: remove the unusued tmp_logflags variable in xfs_bmapi_allocate
tmp_logflags is initialized to 0 and then ORed into bma->logflags, which isn't actually doing anything. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: "Darrick J. Wong" <[email protected]> Signed-off-by: Chandan Babu R <[email protected]>
1 parent 6773da8 commit b11ed35

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4182,7 +4182,6 @@ xfs_bmapi_allocate(
41824182
struct xfs_mount *mp = bma->ip->i_mount;
41834183
int whichfork = xfs_bmapi_whichfork(bma->flags);
41844184
struct xfs_ifork *ifp = xfs_ifork_ptr(bma->ip, whichfork);
4185-
int tmp_logflags = 0;
41864185
int error;
41874186

41884187
ASSERT(bma->length > 0);
@@ -4253,8 +4252,6 @@ xfs_bmapi_allocate(
42534252
error = xfs_bmap_add_extent_hole_real(bma->tp, bma->ip,
42544253
whichfork, &bma->icur, &bma->cur, &bma->got,
42554254
&bma->logflags, bma->flags);
4256-
4257-
bma->logflags |= tmp_logflags;
42584255
if (error)
42594256
return error;
42604257

0 commit comments

Comments
 (0)