From patchwork Mon Apr 20 05:27:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 6239371 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E7FC7BF4A6 for ; Mon, 20 Apr 2015 05:29:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3F9212034C for ; Mon, 20 Apr 2015 05:29:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49DEC2034B for ; Mon, 20 Apr 2015 05:29:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754278AbbDTF2r (ORCPT ); Mon, 20 Apr 2015 01:28:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52132 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754266AbbDTF2q (ORCPT ); Mon, 20 Apr 2015 01:28:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 59665AD42; Mon, 20 Apr 2015 05:28:44 +0000 (UTC) From: NeilBrown To: David Howells , Chris Mason , Al Viro , Josef Bacik , David Sterba Date: Mon, 20 Apr 2015 15:27:52 +1000 Subject: [PATCH 3/3] btrfs: set FS_SUPPORTS_SEEK_HOLE flag. Cc: linux-cachefs@vger.kernel.org, Dave Chinner , linux-kernel@vger.kernel.org, Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org Message-ID: <20150420052752.26554.13596.stgit@notabene.brown> In-Reply-To: <20150420052558.26554.97143.stgit@notabene.brown> References: <20150420052558.26554.97143.stgit@notabene.brown> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This allows fscache to cachefiles in a btrfs filesystem. Signed-off-by: NeilBrown Signed-off-by: Chris Mason --- fs/btrfs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 05fef198ff94..d3c5d2b40f8e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1904,7 +1904,8 @@ static struct file_system_type btrfs_fs_type = { .name = "btrfs", .mount = btrfs_mount, .kill_sb = btrfs_kill_super, - .fs_flags = FS_REQUIRES_DEV | FS_BINARY_MOUNTDATA, + .fs_flags = FS_REQUIRES_DEV | FS_BINARY_MOUNTDATA | + FS_SUPPORTS_SEEK_HOLE, }; MODULE_ALIAS_FS("btrfs");