From: Chandan Rajendra <chandan@linux.vnet.ibm.com>
To: linux-btrfs@vger.kernel.org
Subject: btrfs_setsize: Why do we truncate pages beyond newsize?
Date: Tue, 16 Jun 2015 18:15:40 +0530 [thread overview]
Message-ID: <17286129.veoAeJPk9a@localhost.localdomain> (raw)
Hello all,
I am trying to fix failures of generic/029 and generic/030 (in
subpagesize-blocksize scenario) using the pagecache_isize_extended() function
provided by the commit "vfs: fix data corruption when blocksize < pagesize for
mmaped data" (90a8020278c1598fafd071736a0846b38510309c).
In btrfs_setsize(), For the "newsize > oldsize" scenario, why do we have
"truncate_pagecache(inode, newsize)" i.e. why do we truncate pages beyond the
new size of the file (where pages normally shouldn't exist at this point of
execution).
--
chandan
reply other threads:[~2015-06-16 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17286129.veoAeJPk9a@localhost.localdomain \
--to=chandan@linux.vnet.ibm.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox