diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 18:25:31 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-16 18:25:31 -0500 |
| commit | 0b233b7c79d2ba92c7fb5d60d4116693f1b3b0fe (patch) | |
| tree | 440a6093bacfadf46782592fff22c4a2b2b51443 /fs/nfsd/nfsctl.c | |
| parent | 6f51ee709e4c6b56f2c2a071da2d056a109b9d26 (diff) | |
| parent | bf7491f1be5e125eece2ec67e0f79d513caa6c7e (diff) | |
Merge branch 'for-3.19' of git://linux-nfs.org/~bfields/linux
Pull nfsd updates from Bruce Fields:
"A comparatively quieter cycle for nfsd this time, but still with two
larger changes:
- RPC server scalability improvements from Jeff Layton (using RCU
instead of a spinlock to find idle threads).
- server-side NFSv4.2 ALLOCATE/DEALLOCATE support from Anna
Schumaker, enabling fallocate on new clients"
* 'for-3.19' of git://linux-nfs.org/~bfields/linux: (32 commits)
nfsd4: fix xdr4 count of server in fs_location4
nfsd4: fix xdr4 inclusion of escaped char
sunrpc/cache: convert to use string_escape_str()
sunrpc: only call test_bit once in svc_xprt_received
fs: nfsd: Fix signedness bug in compare_blob
sunrpc: add some tracepoints around enqueue and dequeue of svc_xprt
sunrpc: convert to lockless lookup of queued server threads
sunrpc: fix potential races in pool_stats collection
sunrpc: add a rcu_head to svc_rqst and use kfree_rcu to free it
sunrpc: require svc_create callers to pass in meaningful shutdown routine
sunrpc: have svc_wake_up only deal with pool 0
sunrpc: convert sp_task_pending flag to use atomic bitops
sunrpc: move rq_cachetype field to better optimize space
sunrpc: move rq_splice_ok flag into rq_flags
sunrpc: move rq_dropme flag into rq_flags
sunrpc: move rq_usedeferral flag to rq_flags
sunrpc: move rq_local field to rq_flags
sunrpc: add a generic rq_flags field to svc_rqst and move rq_secure to it
nfsd: minor off by one checks in __write_versions()
sunrpc: release svc_pool_map reference when serv allocation fails
...
Diffstat (limited to 'fs/nfsd/nfsctl.c')
| -rw-r--r-- | fs/nfsd/nfsctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 9506ea565610..19ace74d35f6 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
| @@ -608,7 +608,7 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size) | |||
| 608 | num); | 608 | num); |
| 609 | sep = " "; | 609 | sep = " "; |
| 610 | 610 | ||
| 611 | if (len > remaining) | 611 | if (len >= remaining) |
| 612 | break; | 612 | break; |
| 613 | remaining -= len; | 613 | remaining -= len; |
| 614 | buf += len; | 614 | buf += len; |
| @@ -623,7 +623,7 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size) | |||
| 623 | '+' : '-', | 623 | '+' : '-', |
| 624 | minor); | 624 | minor); |
| 625 | 625 | ||
| 626 | if (len > remaining) | 626 | if (len >= remaining) |
| 627 | break; | 627 | break; |
| 628 | remaining -= len; | 628 | remaining -= len; |
| 629 | buf += len; | 629 | buf += len; |
| @@ -631,7 +631,7 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size) | |||
| 631 | } | 631 | } |
| 632 | 632 | ||
| 633 | len = snprintf(buf, remaining, "\n"); | 633 | len = snprintf(buf, remaining, "\n"); |
| 634 | if (len > remaining) | 634 | if (len >= remaining) |
| 635 | return -EINVAL; | 635 | return -EINVAL; |
| 636 | return tlen + len; | 636 | return tlen + len; |
| 637 | } | 637 | } |
