[PATCH] ecryptfs: handle AOP_TRUNCATED_PAGE better
authorDmitriy Monakhov <dmonakhov@openvz.org>
Mon, 5 Mar 2007 08:30:47 +0000 (00:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 5 Mar 2007 15:57:53 +0000 (07:57 -0800)
commita8fa74ab529f23f812092ece8d7a4766af092332
treebdd3636671755f9022cb2f4dcc6af3a498711bdb
parent82b16528405131eadc18285da982d4806f6db34e
[PATCH] ecryptfs: handle AOP_TRUNCATED_PAGE better

- In fact we don't have to fail if AOP_TRUNCATED_PAGE was returned from
  prepare_write or commit_write. It is beter to retry attempt where it
  is possible.

- Rearange ecryptfs_get_lower_page() error handling logic, make it more clean.

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/mmap.c