Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89768
b: refs/heads/master
c: 8ef8d59
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and James Bottomley committed Apr 16, 2008
1 parent adb7f9b commit bfb63a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b312bab3b961de21c5a98bd70e04070eaa61817c
refs/heads/master: 8ef8d5941cdc6ab616334e14306c39f7aceb780c
6 changes: 3 additions & 3 deletions trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ static int cross_eof(struct scsi_tape * STp, int forward)


/* Flush the write buffer (never need to write if variable blocksize). */
static int flush_write_buffer(struct scsi_tape * STp)
static int st_flush_write_buffer(struct scsi_tape * STp)
{
int offset, transfer, blks;
int result;
Expand Down Expand Up @@ -719,7 +719,7 @@ static int flush_buffer(struct scsi_tape *STp, int seek_next)
return 0;
STps = &(STp->ps[STp->partition]);
if (STps->rw == ST_WRITING) /* Writing */
return flush_write_buffer(STp);
return st_flush_write_buffer(STp);

if (STp->block_size == 0)
return 0;
Expand Down Expand Up @@ -1214,7 +1214,7 @@ static int st_flush(struct file *filp, fl_owner_t id)
return 0;

if (STps->rw == ST_WRITING && !STp->pos_unknown) {
result = flush_write_buffer(STp);
result = st_flush_write_buffer(STp);
if (result != 0 && result != (-ENOSPC))
goto out;
}
Expand Down

0 comments on commit bfb63a8

Please sign in to comment.