linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Improve FL_KEEP_SIZE handling
@ 2015-04-07  5:09 Davide Italiano
  2015-04-07  5:09 ` [PATCH] Btrfs: Improve FL_KEEP_SIZE handling in fallocate Davide Italiano
  0 siblings, 1 reply; 9+ messages in thread
From: Davide Italiano @ 2015-04-07  5:09 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Davide Italiano

This matches the logic of ext4. I think it's more
correct passing (offset + len) to inode_newsize_ok() 
rather than rounding up to block size.
The call can be skipped in some cases too. It works for
me but I'm new to this code so I might miss something.
Let me know what you think.

Davide Italiano (1):
  Btrfs: Improve FL_KEEP_SIZE handling in fallocate.

 fs/btrfs/file.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

-- 
2.3.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-03-17 14:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07  5:09 [PATCH] Improve FL_KEEP_SIZE handling Davide Italiano
2015-04-07  5:09 ` [PATCH] Btrfs: Improve FL_KEEP_SIZE handling in fallocate Davide Italiano
2015-04-20 20:49   ` Davide Italiano
2015-06-25 17:55     ` Davide Italiano
2015-06-26  3:35   ` Liu Bo
2015-06-26 14:08   ` David Sterba
2015-07-22 17:45     ` Davide Italiano
2015-10-21 17:16       ` Davide Italiano
2016-03-17 14:29         ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).