|
@@ -670,7 +670,7 @@ int nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump,
|
|
start * sects_per_block,
|
|
start * sects_per_block,
|
|
nblocks * sects_per_block,
|
|
nblocks * sects_per_block,
|
|
GFP_NOFS,
|
|
GFP_NOFS,
|
|
- DISCARD_FL_BARRIER);
|
|
|
|
|
|
+ BLKDEV_IFL_BARRIER);
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
return ret;
|
|
return ret;
|
|
nblocks = 0;
|
|
nblocks = 0;
|
|
@@ -680,7 +680,7 @@ int nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump,
|
|
ret = blkdev_issue_discard(nilfs->ns_bdev,
|
|
ret = blkdev_issue_discard(nilfs->ns_bdev,
|
|
start * sects_per_block,
|
|
start * sects_per_block,
|
|
nblocks * sects_per_block,
|
|
nblocks * sects_per_block,
|
|
- GFP_NOFS, DISCARD_FL_BARRIER);
|
|
|
|
|
|
+ GFP_NOFS, BLKDEV_IFL_BARRIER);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|