[pnfs] [PATCH 13/17] [SQUASHME] nfs41: rename __nfs_increment_open_seqid to nfs_handle_open_seqid_error
Benny Halevy
bhalevy at panasas.com
Tue Jun 3 13:40:38 EDT 2008
nfs_increment_open_seqid was refactored and __nfs_increment_open_seqid
was taken out to be called from the nfs41 path.
All it does is handle -NFS4ERR_BAD_SEQID and so it should be named
to reflect that.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/nfs4state.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 3e36ee0..7d05542 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -727,7 +727,7 @@ static void nfs_increment_seqid(int status, struct nfs_seqid *seqid)
seqid->sequence->counter++;
}
-void __nfs_increment_open_seqid(int status, struct nfs_seqid *seqid)
+static void nfs_handle_open_seqid_error(int status, struct nfs_seqid *seqid)
{
if (status == -NFS4ERR_BAD_SEQID) {
struct nfs4_state_owner *sp = container_of(seqid->sequence,
@@ -735,9 +735,10 @@ void __nfs_increment_open_seqid(int status, struct nfs_seqid *seqid)
nfs4_drop_state_owner(sp);
}
}
+
void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid)
{
- __nfs_increment_open_seqid(status, seqid);
+ nfs_handle_open_seqid_error(status, seqid);
nfs_increment_seqid(status, seqid);
}
@@ -745,7 +746,7 @@ void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid)
#if defined(CONFIG_NFS_V4_1)
void nfs41_increment_open_seqid(int status, struct nfs_seqid *seqid)
{
- __nfs_increment_open_seqid(status, seqid);
+ nfs_handle_open_seqid_error(status, seqid);
}
#endif
--
1.5.3.3
More information about the pNFS
mailing list