Thread (36 messages) 36 messages, 4 authors, 2009-07-13

Re: [rfc][patch 4/4] fs: tmpfs, ext2 use new truncate

From: Nick Piggin <hidden>
Date: 2009-07-08 12:22:52
Also in: linux-fsdevel, lkml

On Wed, Jul 08, 2009 at 01:14:20PM +0200, Jan Kara wrote:
On Wed 08-07-09 08:53:27, Nick Piggin wrote:
quoted
On Tue, Jul 07, 2009 at 12:38:29PM -0400, Christoph Hellwig wrote:
quoted
We can't move this to the caller easily.  ext2_delete_inode gets
called for all inodes, but we only want to go on truncating for the
limited set that passes this check.
Hmm, shouldn't they have no ->i_blocks in that case?
  Not necessarily. Inode can have extended attributes set and those can
be stored in a special block which is accounted in i_blocks.
OK fair enough. But I don't know if all those checks are
realy appropriate. For example an IS_APPEND inode should
be able to have its blocks trimmed off if a write fails.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help