diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-07 18:02:02 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-21 22:34:23 -0400 |
commit | c81abe34fe1ec5e60e5cba6adc912d30e44cc40d (patch) | |
tree | 5c1a7db7794d72329f172011357717641f99ac7d /fs/f2fs/f2fs.h | |
parent | a29d0e0bc0eeefad2a50a8aa7e3f4b98f72c7feb (diff) | |
download | linux-c81abe34fe1ec5e60e5cba6adc912d30e44cc40d.tar.bz2 |
f2fs: allocate a bio for discarding when actually issuing it
Let's allocate a bio when issuing discard commands later.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 902094f215d0..b549b531e586 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -197,10 +197,12 @@ enum { struct discard_cmd { struct list_head list; /* command list */ struct completion wait; /* compleation */ + struct block_device *bdev; /* bdev */ block_t lstart; /* logical start address */ + block_t start; /* actual start address in dev */ block_t len; /* length */ - struct bio *bio; /* bio */ int state; /* state */ + int error; /* bio error */ }; struct discard_cmd_control { |