Re: [PATCH v4] ocfs2: Let ocfs2_setattr use new truncate sequence.
From: Christoph Hellwig
Date: Fri Jun 11 2010 - 02:56:58 EST
This looks correct, but still has the second if ATTR_SIZE block that
I commented on last time. I'd really prefer if the filesystems could
move the truncate handling into a single conditional to simplify
auditing for it and possibly splitting it out into a separate method
later.
And btw, the S_ISREG check which you only have on the first ATTR_SIZE
check is superflous, the VFS only does ATTR_SIZE calls on regular files.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/