diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-18 21:02:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 16:03:08 -0400 |
commit | 78e4e05c643768af170e5a4b21712d9a7a26cce5 (patch) | |
tree | 877b3f47c16a9e027fe5453418c9d54f339a3aa5 /fs/nfs | |
parent | 9369a431bce1e985597eda32992960c969b27c5b (diff) |
NFSv4.1: Replace get_device_info() with filelayout_get_device_info()
Fix the namespace pollution issue.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/blocklayout/blocklayout.c | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4filelayout.c | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4filelayout.h | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4filelayoutdev.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index dd392ed5f2e2..329bfbfed37d 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c | |||
@@ -874,7 +874,7 @@ static void free_blk_mountid(struct block_mount_id *mid) | |||
874 | } | 874 | } |
875 | } | 875 | } |
876 | 876 | ||
877 | /* This is mostly copied from the filelayout's get_device_info function. | 877 | /* This is mostly copied from the filelayout_get_device_info function. |
878 | * It seems much of this should be at the generic pnfs level. | 878 | * It seems much of this should be at the generic pnfs level. |
879 | */ | 879 | */ |
880 | static struct pnfs_block_dev * | 880 | static struct pnfs_block_dev * |
diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 77cd1151ef0d..af6ee4ad3f15 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c | |||
@@ -608,7 +608,7 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo, | |||
608 | d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode)->pnfs_curr_ld, | 608 | d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode)->pnfs_curr_ld, |
609 | NFS_SERVER(lo->plh_inode)->nfs_client, id); | 609 | NFS_SERVER(lo->plh_inode)->nfs_client, id); |
610 | if (d == NULL) { | 610 | if (d == NULL) { |
611 | dsaddr = get_device_info(lo->plh_inode, id, gfp_flags); | 611 | dsaddr = filelayout_get_device_info(lo->plh_inode, id, gfp_flags); |
612 | if (dsaddr == NULL) | 612 | if (dsaddr == NULL) |
613 | goto out; | 613 | goto out; |
614 | } else | 614 | } else |
diff --git a/fs/nfs/nfs4filelayout.h b/fs/nfs/nfs4filelayout.h index 43fe802dd678..11053c425a61 100644 --- a/fs/nfs/nfs4filelayout.h +++ b/fs/nfs/nfs4filelayout.h | |||
@@ -158,7 +158,7 @@ struct nfs4_pnfs_ds *nfs4_fl_prepare_ds(struct pnfs_layout_segment *lseg, | |||
158 | extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); | 158 | extern void nfs4_fl_put_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); |
159 | extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); | 159 | extern void nfs4_fl_free_deviceid(struct nfs4_file_layout_dsaddr *dsaddr); |
160 | struct nfs4_file_layout_dsaddr * | 160 | struct nfs4_file_layout_dsaddr * |
161 | get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags); | 161 | filelayout_get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags); |
162 | void nfs4_ds_disconnect(struct nfs_client *clp); | 162 | void nfs4_ds_disconnect(struct nfs_client *clp); |
163 | 163 | ||
164 | #endif /* FS_NFS_NFS4FILELAYOUT_H */ | 164 | #endif /* FS_NFS_NFS4FILELAYOUT_H */ |
diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c index f81231f30d94..b85a29df20ae 100644 --- a/fs/nfs/nfs4filelayoutdev.c +++ b/fs/nfs/nfs4filelayoutdev.c | |||
@@ -690,7 +690,7 @@ decode_and_add_device(struct inode *inode, struct pnfs_device *dev, gfp_t gfp_fl | |||
690 | * of available devices, and return it. | 690 | * of available devices, and return it. |
691 | */ | 691 | */ |
692 | struct nfs4_file_layout_dsaddr * | 692 | struct nfs4_file_layout_dsaddr * |
693 | get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags) | 693 | filelayout_get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_flags) |
694 | { | 694 | { |
695 | struct pnfs_device *pdev = NULL; | 695 | struct pnfs_device *pdev = NULL; |
696 | u32 max_resp_sz; | 696 | u32 max_resp_sz; |