diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-18 18:32:44 -0400 |
| commit | 161fb0cf5c7e94cd0490e4bd04edcf1e24d1d288 (patch) | |
| tree | 38b0da03ce66f053e8cfed6c081c62aef22a544d /fs/nfs/nfs4state.c | |
| parent | b8291ad07a7f3b5b990900f0001198ac23ba893e (diff) | |
| parent | b4528762ca92261c6ed3f03e76adeb1dc587aacb (diff) | |
Merge branch 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
* 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
SUNRPC: AUTH_SYS "machine creds" shouldn't use negative valued uid/gid
nfs: make nfs4_drop_state_owner() static
nfs: path_{get,put}() cleanups
nfs: replace remaining __FUNCTION__ occurrences
nfs/lsm: make NFSv4 set LSM mount options
NFSv4: Check the return value of decode_compound_hdr_arg()
nfs: fix race in nfs_dirty_request
NFS: Ensure that 'noac' and/or 'actimeo=0' turn off attribute caching
Diffstat (limited to 'fs/nfs/nfs4state.c')
| -rw-r--r-- | fs/nfs/nfs4state.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 46eb624e4f16..856a8934f610 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
| @@ -282,7 +282,7 @@ nfs4_alloc_state_owner(void) | |||
| 282 | return sp; | 282 | return sp; |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | void | 285 | static void |
| 286 | nfs4_drop_state_owner(struct nfs4_state_owner *sp) | 286 | nfs4_drop_state_owner(struct nfs4_state_owner *sp) |
| 287 | { | 287 | { |
| 288 | if (!RB_EMPTY_NODE(&sp->so_client_node)) { | 288 | if (!RB_EMPTY_NODE(&sp->so_client_node)) { |
| @@ -828,7 +828,7 @@ static int nfs4_reclaim_locks(struct nfs4_state_recovery_ops *ops, struct nfs4_s | |||
| 828 | switch (status) { | 828 | switch (status) { |
| 829 | default: | 829 | default: |
| 830 | printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", | 830 | printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", |
| 831 | __FUNCTION__, status); | 831 | __func__, status); |
| 832 | case -NFS4ERR_EXPIRED: | 832 | case -NFS4ERR_EXPIRED: |
| 833 | case -NFS4ERR_NO_GRACE: | 833 | case -NFS4ERR_NO_GRACE: |
| 834 | case -NFS4ERR_RECLAIM_BAD: | 834 | case -NFS4ERR_RECLAIM_BAD: |
| @@ -869,14 +869,14 @@ static int nfs4_reclaim_open_state(struct nfs4_state_recovery_ops *ops, struct n | |||
| 869 | list_for_each_entry(lock, &state->lock_states, ls_locks) { | 869 | list_for_each_entry(lock, &state->lock_states, ls_locks) { |
| 870 | if (!(lock->ls_flags & NFS_LOCK_INITIALIZED)) | 870 | if (!(lock->ls_flags & NFS_LOCK_INITIALIZED)) |
| 871 | printk("%s: Lock reclaim failed!\n", | 871 | printk("%s: Lock reclaim failed!\n", |
| 872 | __FUNCTION__); | 872 | __func__); |
| 873 | } | 873 | } |
| 874 | continue; | 874 | continue; |
| 875 | } | 875 | } |
| 876 | switch (status) { | 876 | switch (status) { |
| 877 | default: | 877 | default: |
| 878 | printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", | 878 | printk(KERN_ERR "%s: unhandled error %d. Zeroing state\n", |
| 879 | __FUNCTION__, status); | 879 | __func__, status); |
| 880 | case -ENOENT: | 880 | case -ENOENT: |
| 881 | case -NFS4ERR_RECLAIM_BAD: | 881 | case -NFS4ERR_RECLAIM_BAD: |
| 882 | case -NFS4ERR_RECLAIM_CONFLICT: | 882 | case -NFS4ERR_RECLAIM_CONFLICT: |
