LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2 0/2] ext4: Add pollable sysfs entry for block threshold events
@ 2015-03-16 13:25 Beata Michalska
  2015-03-16 13:25 ` [PATCH v2 1/2] ext4: Add helper function to mark group as corrupted Beata Michalska
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Beata Michalska @ 2015-03-16 13:25 UTC (permalink / raw)
  To: lczerner, adilger.kernel; +Cc: tytso, linux-ext4, linux-kernel, kyungmin.park


There has been a request to provide a notification whenever
the amount of free space drops below a certain level.
This level, preferably, could be adjusted based on the actual
space usage, so that appropraite actions can be undertaken
for different levels being reached. The idea here is to expose
a pollabe sysfs entry through which the threshold can be spcified,
in a form of a number of used logical blocks. Then, the process might
wait for a notification, through the very same sysfs entry, instead of
periodically calling statfs - as the concept introduced, is to
resemble the very last with hopefully, minimum overhead. When
the process wakes-up it might decide to increase the threshold
and once again wait for the notification.

---
v2:
	- rename the helper function to ext4_mark_group_corrupted
          and move the changes to a separate patch
	- move the call to notify function from ext4_mb_new_blocks
          and ext4_da_reserve_space to ext4_has_free_clusters,
          remove it from ext4_update_super
	- switch from used to available blocks
	- add documnetation for new sysfs entry
---

Beata Michalska (2):
  ext4: Add helper function to mark group as corrupted
  ext4: Add pollable sysfs entry for block threshold events

 Documentation/filesystems/ext4.txt |   11 +++++++
 fs/ext4/balloc.c                   |   45 +++++++++++---------------
 fs/ext4/ext4.h                     |   14 +++++++++
 fs/ext4/ialloc.c                   |    5 +--
 fs/ext4/mballoc.c                  |   13 ++------
 fs/ext4/super.c                    |   61 ++++++++++++++++++++++++++++++++++--
 6 files changed, 106 insertions(+), 43 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2015-03-18 18:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16 13:25 [PATCH v2 0/2] ext4: Add pollable sysfs entry for block threshold events Beata Michalska
2015-03-16 13:25 ` [PATCH v2 1/2] ext4: Add helper function to mark group as corrupted Beata Michalska
2015-03-16 13:25 ` [PATCH v2 2/2] ext4: Add pollable sysfs entry for block threshold events Beata Michalska
2015-03-16 13:28 ` [PATCH v2 0/2] " Christoph Hellwig
2015-03-18  9:31   ` Beata Michalska
2015-03-18 10:12     ` Lukáš Czerner
2015-03-18 18:20       ` Christoph Hellwig

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).