Skip to content

Commit 0a8ad0f

Browse files
committed
Merge tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux
Pull orangefs updates from Mike Marshall: "Two small fixes. This is just a fix for an unused value that Colin King sent me and a related fix I added" * tag 'for-linus-5.3-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux: orangefs: eliminate needless variable assignments orangefs: remove redundant assignment to variable buffer_index
2 parents a18f877 + e65682b commit 0a8ad0f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/orangefs/file.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
5252
struct orangefs_inode_s *orangefs_inode = ORANGEFS_I(inode);
5353
struct orangefs_khandle *handle = &orangefs_inode->refn.khandle;
5454
struct orangefs_kernel_op_s *new_op = NULL;
55-
int buffer_index = -1;
55+
int buffer_index;
5656
ssize_t ret;
5757
size_t copy_amount;
5858

@@ -134,7 +134,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
134134
*/
135135
if (ret == -EAGAIN && op_state_purged(new_op)) {
136136
orangefs_bufmap_put(buffer_index);
137-
buffer_index = -1;
138137
if (type == ORANGEFS_IO_WRITE)
139138
iov_iter_revert(iter, total_size);
140139
gossip_debug(GOSSIP_FILE_DEBUG,
@@ -262,7 +261,6 @@ ssize_t wait_for_direct_io(enum ORANGEFS_io_type type, struct inode *inode,
262261
"%s(%pU): PUT buffer_index %d\n",
263262
__func__, handle, buffer_index);
264263
}
265-
buffer_index = -1;
266264
}
267265
op_release(new_op);
268266
return ret;

0 commit comments

Comments
 (0)