aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index d204aad2e68..df83bea2c62 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -628,7 +628,7 @@ static int cross_eof(struct scsi_tape * STp, int forward)
628 628
629 629
630/* Flush the write buffer (never need to write if variable blocksize). */ 630/* Flush the write buffer (never need to write if variable blocksize). */
631static int flush_write_buffer(struct scsi_tape * STp) 631static int st_flush_write_buffer(struct scsi_tape * STp)
632{ 632{
633 int offset, transfer, blks; 633 int offset, transfer, blks;
634 int result; 634 int result;
@@ -719,7 +719,7 @@ static int flush_buffer(struct scsi_tape *STp, int seek_next)
719 return 0; 719 return 0;
720 STps = &(STp->ps[STp->partition]); 720 STps = &(STp->ps[STp->partition]);
721 if (STps->rw == ST_WRITING) /* Writing */ 721 if (STps->rw == ST_WRITING) /* Writing */
722 return flush_write_buffer(STp); 722 return st_flush_write_buffer(STp);
723 723
724 if (STp->block_size == 0) 724 if (STp->block_size == 0)
725 return 0; 725 return 0;
@@ -1214,7 +1214,7 @@ static int st_flush(struct file *filp, fl_owner_t id)
1214 return 0; 1214 return 0;
1215 1215
1216 if (STps->rw == ST_WRITING && !STp->pos_unknown) { 1216 if (STps->rw == ST_WRITING && !STp->pos_unknown) {
1217 result = flush_write_buffer(STp); 1217 result = st_flush_write_buffer(STp);
1218 if (result != 0 && result != (-ENOSPC)) 1218 if (result != 0 && result != (-ENOSPC))
1219 goto out; 1219 goto out;
1220 } 1220 }