lkml.org 
[lkml]   [2010]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 3/3] tcm/fileio: Add UNMAP / Block DISCARD support
Date
Nicholas A. Bellinger wrote:

> @@ -433,6 +448,42 @@ static int fd_emulate_scsi_cdb(struct se_task *task)
> if (ret < 0)
> return ret;
> break;
> + case UNMAP:
> + i = igrab(f->f_mapping->host);
> + if (!(i)) {

.....

> + if (!(S_ISBLK(i->i_mode))) {

.....

> + if (!(bd)) {

Is this LISP or what? ;)

Eike
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2010-09-28 23:09    [W:1.636 / U:2.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site