Skip to content

Commit

Permalink
Push the file layout driver into a subdirectory
Browse files Browse the repository at this point in the history
The object and block layouts already exist in their own
subdirectories. This patch completes the set!

Note that as a layout denotes nfs4 already, I stripped
that prefix out of the file names.

Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Acked-by: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Tom Haynes authored and Trond Myklebust committed May 30, 2014
1 parent 0aa61e7 commit b596872
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 1 addition & 3 deletions fs/nfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ nfsv4-$(CONFIG_NFS_USE_LEGACY_DNS) += cache_lib.o
nfsv4-$(CONFIG_SYSCTL) += nfs4sysctl.o
nfsv4-$(CONFIG_NFS_V4_1) += pnfs.o pnfs_dev.o

obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
nfs_layout_nfsv41_files-y := nfs4filelayout.o nfs4filelayoutdev.o

obj-$(CONFIG_PNFS_FILE_LAYOUT) += filelayout/
obj-$(CONFIG_PNFS_OBJLAYOUT) += objlayout/
obj-$(CONFIG_PNFS_BLOCK) += blocklayout/
5 changes: 5 additions & 0 deletions fs/nfs/filelayout/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for the pNFS Files Layout Driver kernel module
#
obj-$(CONFIG_PNFS_FILE_LAYOUT) += nfs_layout_nfsv41_files.o
nfs_layout_nfsv41_files-y := filelayout.o filelayoutdev.o
10 changes: 5 additions & 5 deletions fs/nfs/nfs4filelayout.c → fs/nfs/filelayout/filelayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

#include <linux/sunrpc/metrics.h>

#include "nfs4session.h"
#include "internal.h"
#include "delegation.h"
#include "nfs4filelayout.h"
#include "nfs4trace.h"
#include "../nfs4session.h"
#include "../internal.h"
#include "../delegation.h"
#include "filelayout.h"
#include "../nfs4trace.h"

#define NFSDBG_FACILITY NFSDBG_PNFS_LD

Expand Down
2 changes: 1 addition & 1 deletion fs/nfs/nfs4filelayout.h → fs/nfs/filelayout/filelayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#ifndef FS_NFS_NFS4FILELAYOUT_H
#define FS_NFS_NFS4FILELAYOUT_H

#include "pnfs.h"
#include "../pnfs.h"

/*
* Default data server connection timeout and retrans vaules.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include <linux/module.h>
#include <linux/sunrpc/addr.h>

#include "internal.h"
#include "nfs4session.h"
#include "nfs4filelayout.h"
#include "../internal.h"
#include "../nfs4session.h"
#include "filelayout.h"

#define NFSDBG_FACILITY NFSDBG_PNFS_LD

Expand Down

0 comments on commit b596872

Please sign in to comment.