diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-22 22:22:04 -0400 |
---|---|---|
committer | Pawel Osmialowski <p.osmialowsk@mcdsrvbld02.digital.local> | 2015-03-27 14:37:42 +0100 |
commit | 7ddab43dfcaed910fbed4545ab94f08d227668fa (patch) | |
tree | 61d2a356e63abf0cddbfee5d6cc46a2e0e53d6f4 /fs/nfsd/vfs.c | |
parent | a3cfeff5b8e907145fbcceb8c7b7fb908e61ceca (diff) | |
download | linux-3.10-sandbox/pawelo/kernfs.tar.gz linux-3.10-sandbox/pawelo/kernfs.tar.bz2 linux-3.10-sandbox/pawelo/kernfs.zip |
constify ->actorsandbox/pawelo/kernfs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 68d57c58fc6..59fe9ca53d4 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1979,14 +1979,15 @@ static int nfsd_buffered_filldir(void *__buf, const char *name, int namlen, static __be32 nfsd_buffered_readdir(struct file *file, filldir_t func, struct readdir_cd *cdp, loff_t *offsetp) { - struct readdir_data buf; struct buffered_dirent *de; int host_err; int size; loff_t offset; + struct readdir_data buf = { + .ctx.actor = nfsd_buffered_filldir, + .dirent = (void *)__get_free_page(GFP_KERNEL) + }; - buf.ctx.actor = nfsd_buffered_filldir; - buf.dirent = (void *)__get_free_page(GFP_KERNEL); if (!buf.dirent) return nfserrno(-ENOMEM); |