[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2807E5FD2F6FDA4886F6618EAC48510E92BB4EBE@CRSMSX101.amr.corp.intel.com>
Date: Tue, 12 Nov 2019 17:05:25 +0000
From: "Weiny, Ira" <ira.weiny@...el.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Alexander Viro <viro@...iv.linux.org.uk>, Chris Mason <clm@...com>,
Josef Bacik <josef@...icpanda.com>,
David Sterba <dsterba@...e.com>,
Jaegeuk Kim <jaegeuk@...nel.org>, Chao Yu <chao@...nel.org>,
"linux-xfs@...r.kernel.org" <linux-xfs@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"Trond Myklebust" <trond.myklebust@...merspace.com>,
Anna Schumaker <anna.schumaker@...app.com>,
"linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-f2fs-devel@...ts.sourceforge.net"
<linux-f2fs-devel@...ts.sourceforge.net>,
"linux-nfs@...r.kernel.org" <linux-nfs@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
Dave Chinner <david@...morbit.com>, Jan Kara <jack@...e.cz>
Subject: RE: [PATCH 2/2] fs: Move swap_[de]activate to file_operations
>
> On Mon, 11 Nov 2019 16:34:52 -0800 ira.weiny@...el.com wrote:
>
> > From: Ira Weiny <ira.weiny@...el.com>
> >
> > swap_activate() and swap_deactivate() have nothing to do with address
> > spaces. We want to eventually make the address space operations
> > dynamic to switch inode flags on the fly.
>
> What does this mean?
>
> > So to simplify this code as
> > well as properly track these operations we move these functions to the
> > file_operations vector.
> >
> > This has been tested with XFS but not NFS, f2fs, or btrfs.
> >
> > Also note f2fs and xfs have simple moves of their functions to
> > facilitate compilation. No functional changes are contained within
> > those functions.
> >
> > ...
> >
> > --- a/fs/btrfs/inode.c
> > +++ b/fs/btrfs/inode.c
> > @@ -11002,6 +11002,8 @@ static const struct file_operations
> > btrfs_dir_file_operations = { #endif
> > .release = btrfs_release_file,
> > .fsync = btrfs_sync_file,
> > + .swap_activate = btrfs_swap_activate,
> > + .swap_deactivate = btrfs_swap_deactivate,
> > };
>
> Shouldn't this be btrfs_file_operations?
>
Shoot... yes it should and I even thought that as I was moving it and must have still made the mistake...
Sorry, I'll update.
Ira
Powered by blists - more mailing lists