From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752235AbbCKKQr (ORCPT ); Wed, 11 Mar 2015 06:16:47 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:26172 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751710AbbCKKQp (ORCPT ); Wed, 11 Mar 2015 06:16:45 -0400 X-AuditID: cbfec7f4-b7f126d000001e9a-d6-5500157ae72b From: Beata Michalska To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com Subject: [RFC] ext4: Add pollable sysfs entry for block threshold events Date: Wed, 11 Mar 2015 11:16:32 +0100 Message-id: <1426068993-1051-1-git-send-email-b.michalska@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJMWRmVeSWpSXmKPExsVy+t/xq7pVogyhBk03WSy+fulgsTjb9Ibd Yua8O2wWl3fNYbNo7fnJ7sDq0bK53KPpzFFmj74tqxg9Pm+SC2CJ4rJJSc3JLEst0rdL4Mro 2X2BreAuZ8WFu4+ZGxjvs3cxcnJICJhITH17CMoWk7hwbz1bFyMXh5DAUkaJ563/WCCcXiaJ +1v/M4NUsQnoS7yasZIJxBYR0JZ4ueYSUDcHB7NApMTsn8UgYWEBD4mbfcfAhrIIqEosXL6M CaSEV8BNYuqOKBBTQkBBYs4kmwmM3AsYGVYxiqaWJhcUJ6XnGuoVJ+YWl+al6yXn525ihATA lx2Mi49ZHWIU4GBU4uG9Gf0vRIg1say4MvcQowQHs5IIbx8/Q6gQb0piZVVqUX58UWlOavEh RiYOTqkGRsltEdG8z0rn69171BZka2g3fcbLIEspheNN8tmCLiGMgsaPrZkbmsS99EQ7+rdM PR1asvaT7HOffZNXOk3POxPmZ3Nj/iSlh72bchc3NVkXBGn8un/nwMadLUttLeXuNW7d90B2 Xvutr1UHO6p+fKx8MlGI/0XS3C7FGXxXrwVHHNj4L8/RRomlOCPRUIu5qDgRALjTE0DeAQAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, 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. BR Beata Michalska ---- Beate Michalska (1): ext4: Add pollable sysfs entry for block threshold events fs/ext4/balloc.c | 17 ++++------------- fs/ext4/ext4.h | 12 ++++++++++++ fs/ext4/ialloc.c | 5 +---- fs/ext4/inode.c | 2 +- fs/ext4/mballoc.c | 14 ++++---------- fs/ext4/resize.c | 3 ++- fs/ext4/super.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 74 insertions(+), 31 deletions(-) -- 1.7.9.5