search for: blkdev_issue_discard

Displaying 13 results from an estimated 13 matches for "blkdev_issue_discard".

2008 Sep 16
2
When is a block free?
Where in the ext2/3 code does it know that a block on the disk is now free to reuse? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/ext3-users/attachments/20080916/7b737a93/attachment.htm>
2011 Sep 01
9
[PATCH V4 0/3] xen-blkfront/blkback discard support
Dear list, This is the V4 of the trim support for xen-blkfront/blkback, Now we move BLKIF_OP_TRIM to BLKIF_OP_DISCARD, and dropped all "trim" stuffs in the patches, and use "discard" instead. Also we updated the helpers of blkif_x86_{32|64}_request or we will meet problems using a non-native protocol. And this patch has been tested with both SSD and raw file, with SSD we will
2012 Aug 16
0
[RFC v1 3/5] VBD: enlarge max segment per request in blkfront
...nt dispatch_discard_io(struct xen_blkif *blkif, xen_blkif_get(blkif); secure = (blkif->vbd.discard_secure && - (req->u.discard.flag & BLKIF_DISCARD_SECURE)) ? + (req->flag & BLKIF_DISCARD_SECURE)) ? BLKDEV_DISCARD_SECURE : 0; - err = blkdev_issue_discard(bdev, req->u.discard.sector_number, - req->u.discard.nr_sectors, + err = blkdev_issue_discard(bdev, req->sector_number, + req->nr_sectors, GFP_KERNEL, secure); if (err == -EOPNOTSUPP) { @@ -417,7 +447,7 @@ static...
2012 Oct 03
1
OCZ Vertex3 SSD and LSI 9211-8i (mpt2sas)
...<ffffffff8105ea30>] ? default_wake_function+0x0/0x20 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff8125075f>] ? submit_bio+0x8f/0x120 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff814edcad>] wait_for_completion+0x1d/0x20 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff812574a2>] blkdev_issue_discard+0x152/0x1e0 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff81257e8f>] blkdev_ioctl+0x65f/0x6e0 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff811aefcc>] block_ioctl+0x3c/0x40 Oct 3 12:49:12 svfis-sg2 kernel: [<ffffffff81189682>] vfs_ioctl+0x22/0xa0 Oct 3 12:49:12 svfis-sg2 kernel: [&...
2016 Jun 15
0
[PATCH v7 00/12] Support non-lru page migration
...11>] ? generic_make_request+0x496/0x496 [ 340.320078] [<ffffffff811190fc>] ? lockdep_init_map+0x1ef/0x4b0 [ 340.320082] [<ffffffff814880a4>] submit_bio_wait+0xff/0x138 [ 340.320085] [<ffffffff81487fa5>] ? bio_add_page+0x292/0x292 [ 340.320090] [<ffffffff814ab82c>] blkdev_issue_discard+0xee/0x148 [ 340.320093] [<ffffffff814ab73e>] ? __blkdev_issue_discard+0x399/0x399 [ 340.320097] [<ffffffff8111f0ac>] ? debug_show_all_locks+0x226/0x226 [ 340.320101] [<ffffffff81404de8>] ext4_free_data_callback+0x2cc/0x8bc [ 340.320104] [<ffffffff81404de8>] ? ext4_f...
2011 Jul 26
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
...ps); +static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache, + u64 num_bytes, int reserve); static noinline int block_group_cache_done(struct btrfs_block_group_cache *cache) @@ -1764,8 +1781,8 @@ static int btrfs_issue_discard(struct block_device *bdev, return blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_NOFS, 0); } -static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, - u64 num_bytes, u64 *actual_bytes) +int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, u64 num_bytes, + u64 *actual_bytes) { int ret; u64 discarded...
2011 Jul 27
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2
...ps); +static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache, + u64 num_bytes, int reserve); static noinline int block_group_cache_done(struct btrfs_block_group_cache *cache) @@ -1764,8 +1781,8 @@ static int btrfs_issue_discard(struct block_device *bdev, return blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_NOFS, 0); } -static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, - u64 num_bytes, u64 *actual_bytes) +int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, u64 num_bytes, + u64 *actual_bytes) { int ret; u64 discarded...
2016 Jun 15
2
[PATCH v7 00/12] Support non-lru page migration
...ke_request+0x496/0x496 > [ 340.320078] [<ffffffff811190fc>] ? lockdep_init_map+0x1ef/0x4b0 > [ 340.320082] [<ffffffff814880a4>] submit_bio_wait+0xff/0x138 > [ 340.320085] [<ffffffff81487fa5>] ? bio_add_page+0x292/0x292 > [ 340.320090] [<ffffffff814ab82c>] blkdev_issue_discard+0xee/0x148 > [ 340.320093] [<ffffffff814ab73e>] ? __blkdev_issue_discard+0x399/0x399 > [ 340.320097] [<ffffffff8111f0ac>] ? debug_show_all_locks+0x226/0x226 > [ 340.320101] [<ffffffff81404de8>] ext4_free_data_callback+0x2cc/0x8bc > [ 340.320104] [<ffffffff81...
2016 Jun 15
2
[PATCH v7 00/12] Support non-lru page migration
...ke_request+0x496/0x496 > [ 340.320078] [<ffffffff811190fc>] ? lockdep_init_map+0x1ef/0x4b0 > [ 340.320082] [<ffffffff814880a4>] submit_bio_wait+0xff/0x138 > [ 340.320085] [<ffffffff81487fa5>] ? bio_add_page+0x292/0x292 > [ 340.320090] [<ffffffff814ab82c>] blkdev_issue_discard+0xee/0x148 > [ 340.320093] [<ffffffff814ab73e>] ? __blkdev_issue_discard+0x399/0x399 > [ 340.320097] [<ffffffff8111f0ac>] ? debug_show_all_locks+0x226/0x226 > [ 340.320101] [<ffffffff81404de8>] ext4_free_data_callback+0x2cc/0x8bc > [ 340.320104] [<ffffffff81...
2016 May 31
7
[PATCH v7 00/12] Support non-lru page migration
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and easy fork fail. The problem was fragmentation caused by zram and GPU driver mainly. With memory pressure, their pages were spread out all of pageblock and it cannot be migrated with current compaction algorithm which supports only LRU pages. In the end, compaction cannot
2016 May 31
7
[PATCH v7 00/12] Support non-lru page migration
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and easy fork fail. The problem was fragmentation caused by zram and GPU driver mainly. With memory pressure, their pages were spread out all of pageblock and it cannot be migrated with current compaction algorithm which supports only LRU pages. In the end, compaction cannot
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...uct blk_queue_tag *bqt, int tag) { if (unlikely(bqt == NULL || tag >= bqt->real_max_depth)) return NULL; return bqt->tag_index[tag]; } #define BLKDEV_DISCARD_SECURE 0x01 /* secure discard */ extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *); extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags); extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask); static inline int sb_issue_discard(struct super_block *sb, sector_t block, sect...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...uct blk_queue_tag *bqt, int tag) { if (unlikely(bqt == NULL || tag >= bqt->real_max_depth)) return NULL; return bqt->tag_index[tag]; } #define BLKDEV_DISCARD_SECURE 0x01 /* secure discard */ extern int blkdev_issue_flush(struct block_device *, gfp_t, sector_t *); extern int blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags); extern int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask); static inline int sb_issue_discard(struct super_block *sb, sector_t block, sect...