diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-18 20:43:31 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 16:03:06 -0400 |
commit | 49a85061b0bc9cb26361096482c81172c666c937 (patch) | |
tree | ec64b83a0fdde6ede6d93e3bed776428206d4fb6 | |
parent | a0b0a6e39bd1bb4a0922086feee73627cbd53ba4 (diff) |
NFSv4.1: Cleanup add a "pnfs_" prefix to mark_matching_lsegs_invalid
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/callback_proc.c | 4 | ||||
-rw-r--r-- | fs/nfs/pnfs.c | 6 | ||||
-rw-r--r-- | fs/nfs/pnfs.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c index 1b5d809a105e..57b8bda0f4e9 100644 --- a/fs/nfs/callback_proc.c +++ b/fs/nfs/callback_proc.c | |||
@@ -158,7 +158,7 @@ static u32 initiate_file_draining(struct nfs_client *clp, | |||
158 | ino = lo->plh_inode; | 158 | ino = lo->plh_inode; |
159 | spin_lock(&ino->i_lock); | 159 | spin_lock(&ino->i_lock); |
160 | if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags) || | 160 | if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags) || |
161 | mark_matching_lsegs_invalid(lo, &free_me_list, | 161 | pnfs_mark_matching_lsegs_invalid(lo, &free_me_list, |
162 | &args->cbl_range)) | 162 | &args->cbl_range)) |
163 | rv = NFS4ERR_DELAY; | 163 | rv = NFS4ERR_DELAY; |
164 | else | 164 | else |
@@ -211,7 +211,7 @@ static u32 initiate_bulk_draining(struct nfs_client *clp, | |||
211 | ino = lo->plh_inode; | 211 | ino = lo->plh_inode; |
212 | spin_lock(&ino->i_lock); | 212 | spin_lock(&ino->i_lock); |
213 | set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); | 213 | set_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); |
214 | if (mark_matching_lsegs_invalid(lo, &free_me_list, &range)) | 214 | if (pnfs_mark_matching_lsegs_invalid(lo, &free_me_list, &range)) |
215 | rv = NFS4ERR_DELAY; | 215 | rv = NFS4ERR_DELAY; |
216 | list_del_init(&lo->plh_bulk_recall); | 216 | list_del_init(&lo->plh_bulk_recall); |
217 | spin_unlock(&ino->i_lock); | 217 | spin_unlock(&ino->i_lock); |
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 3a7ac97020df..aea2e5256fe4 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -390,7 +390,7 @@ static int mark_lseg_invalid(struct pnfs_layout_segment *lseg, | |||
390 | * after call. | 390 | * after call. |
391 | */ | 391 | */ |
392 | int | 392 | int |
393 | mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, | 393 | pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, |
394 | struct list_head *tmp_list, | 394 | struct list_head *tmp_list, |
395 | struct pnfs_layout_range *recall_range) | 395 | struct pnfs_layout_range *recall_range) |
396 | { | 396 | { |
@@ -458,7 +458,7 @@ pnfs_destroy_layout(struct nfs_inode *nfsi) | |||
458 | lo = nfsi->layout; | 458 | lo = nfsi->layout; |
459 | if (lo) { | 459 | if (lo) { |
460 | lo->plh_block_lgets++; /* permanently block new LAYOUTGETs */ | 460 | lo->plh_block_lgets++; /* permanently block new LAYOUTGETs */ |
461 | mark_matching_lsegs_invalid(lo, &tmp_list, NULL); | 461 | pnfs_mark_matching_lsegs_invalid(lo, &tmp_list, NULL); |
462 | } | 462 | } |
463 | spin_unlock(&nfsi->vfs_inode.i_lock); | 463 | spin_unlock(&nfsi->vfs_inode.i_lock); |
464 | pnfs_free_lseg_list(&tmp_list); | 464 | pnfs_free_lseg_list(&tmp_list); |
@@ -651,7 +651,7 @@ _pnfs_return_layout(struct inode *ino) | |||
651 | /* Reference matched in nfs4_layoutreturn_release */ | 651 | /* Reference matched in nfs4_layoutreturn_release */ |
652 | get_layout_hdr(lo); | 652 | get_layout_hdr(lo); |
653 | empty = list_empty(&lo->plh_segs); | 653 | empty = list_empty(&lo->plh_segs); |
654 | mark_matching_lsegs_invalid(lo, &tmp_list, NULL); | 654 | pnfs_mark_matching_lsegs_invalid(lo, &tmp_list, NULL); |
655 | /* Don't send a LAYOUTRETURN if list was initially empty */ | 655 | /* Don't send a LAYOUTRETURN if list was initially empty */ |
656 | if (empty) { | 656 | if (empty) { |
657 | spin_unlock(&ino->i_lock); | 657 | spin_unlock(&ino->i_lock); |
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index d51ef888e71b..6af518934e4c 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h | |||
@@ -203,7 +203,7 @@ void pnfs_set_layout_stateid(struct pnfs_layout_hdr *lo, | |||
203 | int pnfs_choose_layoutget_stateid(nfs4_stateid *dst, | 203 | int pnfs_choose_layoutget_stateid(nfs4_stateid *dst, |
204 | struct pnfs_layout_hdr *lo, | 204 | struct pnfs_layout_hdr *lo, |
205 | struct nfs4_state *open_state); | 205 | struct nfs4_state *open_state); |
206 | int mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, | 206 | int pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo, |
207 | struct list_head *tmp_list, | 207 | struct list_head *tmp_list, |
208 | struct pnfs_layout_range *recall_range); | 208 | struct pnfs_layout_range *recall_range); |
209 | bool pnfs_roc(struct inode *ino); | 209 | bool pnfs_roc(struct inode *ino); |