Preallocation for directory gets blocked at 2 places & never gets propogated to the underlying file system : - - open(2) with O_DIRECTORY | O_WRONLY or O_DIRECTORY | O_RDWR at do_last()->may_open(). - open(2) with O_DIRECTORY | O_RDONLY -> fallocate(2) at do_fallocate(). Signed-off-by: Rohan Puri <rohan.puri15@xxxxxxxxx> --- fs/open.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/open.c b/fs/open.c index 9d64679..5d4f372 100644 --- a/fs/open.c +++ b/fs/open.c @@ -280,10 +280,6 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len) if (S_ISFIFO(inode->i_mode)) return -ESPIPE; - /* - * Let individual file system decide if it supports preallocation - * for directories or not. - */ if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode)) return -ENODEV; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html