]> git.baikalelectronics.ru Git - kernel.git/commit
exofs: New truncate sequence
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 9 Jun 2010 15:23:18 +0000 (18:23 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Aug 2010 20:47:41 +0000 (16:47 -0400)
commit39c2de04eb9a514b21e23fa1e998c0510f1ed7c4
tree10cc6c830e4ffcc116faaf886e72dd3f0b73d849
parent541b93a821d05470b70988ee61fe234b24c4afb7
exofs: New truncate sequence

These changes are crafted based on the similar
conversion done to ext2 by Nick Piggin.

* Remove the deprecated ->truncate vector. Let exofs_setattr
  take care of on-disk size updates.
* Call truncate_pagecache on the unused pages if
  write_begin/end fails.
* Cleanup exofs_delete_inode that did stupid inode
  writes and updates on an inode that will be
  removed.
* And finally get rid of exofs_get_block. We never
  had any blocks it was all for calling nobh_truncate_page.
  nobh_truncate_page is not actually needed in exofs since
  the last page is complete and gone, just like all the other
  pages. There is no partial blocks in exofs.

I've tested with this patch, and there are no apparent
failures, so far.

CC: Nick Piggin <npiggin@suse.de>
CC: Christoph Hellwig <hch@lst.de>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exofs/exofs.h
fs/exofs/file.c
fs/exofs/inode.c