The patch titled udf: add assertions has been added to the -mm tree. Its filename is udf-add-assertions.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: udf: add assertions From: Jan Kara <jack@xxxxxxx> Add a few assertions into udf_discard_prealloc() to check that the file is sane (mostly helps debugging further patches ;). Signed-off-by: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/udf/truncate.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -puN fs/udf/truncate.c~udf-add-assertions fs/udf/truncate.c --- a/fs/udf/truncate.c~udf-add-assertions +++ a/fs/udf/truncate.c @@ -88,8 +88,9 @@ void udf_discard_prealloc(struct inode * { etype = netype; lbcount += elen; - if (lbcount > inode->i_size && lbcount - inode->i_size < inode->i_sb->s_blocksize) + if (lbcount > inode->i_size && lbcount - elen < inode->i_size) { + WARN_ON(lbcount - inode->i_size >= inode->i_sb->s_blocksize); nelen = elen - (lbcount - inode->i_size); epos.offset -= adsize; extent_trunc(inode, &epos, eloc, etype, elen, nelen); @@ -119,6 +120,7 @@ void udf_discard_prealloc(struct inode * } UDF_I_LENEXTENTS(inode) = lbcount; + WARN_ON(lbcount != inode->i_size); brelse(epos.bh); } _ Patches currently in -mm which might be from jack@xxxxxxx are udf-use-sector_t-and-loff_t-for-file-offsets.patch udf-introduce-struct-extent_position.patch udf-use-get_bh.patch udf-add-assertions.patch udf-support-files-larger-than-1g.patch udf-fix-link-counts.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html