David Woodhouse <dwmw2@xxxxxxxxxxxxx> writes: > On Mon, 2008-08-11 at 19:25 +0900, OGAWA Hirofumi wrote: >> David Woodhouse <dwmw2@xxxxxxxxxxxxx> writes: >> >> >> [I don't know whether blkdev_issue_flush() >> >> really want to use (1 << BIO_RW_BARRIER) or not.] >> > >> > I think it seems reasonable, but let's do it in a separate patch. Do you >> > want me to put it in my tree, or will you send it to Jens directly? >> >> Thanks. Could you put it in your tree > > Will do. Can I have it with a signed-off-by? Ah, of course. Signed-off-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> > @@ -552,9 +553,15 @@ int fat_free_clusters(struct inode *inode, int cluster) > goto error; > } > > - /* Issue discard for the sectors we no longer care about */ > - sb_issue_discard(sb, fat_clus_to_blknr(sbi, fatent.entry), > - sbi->sec_per_clus, NULL); > + /* Issue discard for the sectors we no longer care about, > + batching contiguous clusters into one request */ > + if (cluster != fatent.entry + 1) { > + int nr_clus = fatent.entry - first_cl + 1; > + > + sb_issue_discard(sb, fat_clus_to_blknr(sbi, first_cl), > + nr_clus * sbi->sec_per_clus, NULL); Looks good to me. But, could you use following comment style for FAT? /* * Issue discard for the sectors we no longer care about, * batching contiguous clusters into one request */ Then, Acked-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> Thanks. -- OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html