Hi all, These are the patches for adding batched discard support in ocfs2. I have tested it with xfstests 251 and it passed. btw, I have also run some tests against it(bonnie++, postmark, ffsb and fs_mark) and there are no big difference before and after the discard. Regards, Tao