Commit 6d66ffc1 authored by Sohaib Mohamed's avatar Sohaib Mohamed Committed by Dominique Martinet

9p: fix minor indentation and codestyle

Warnings found by checkpatch.pl

Link: http://lkml.kernel.org/r/20210930235503.126033-1-sohaib.amhmd@gmail.comSigned-off-by: default avatarSohaib Mohamed <sohaib.amhmd@gmail.com>
Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent e4eeefba
...@@ -71,6 +71,7 @@ static inline int dt_type(struct p9_wstat *mistat) ...@@ -71,6 +71,7 @@ static inline int dt_type(struct p9_wstat *mistat)
static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen) static struct p9_rdir *v9fs_alloc_rdir_buf(struct file *filp, int buflen)
{ {
struct p9_fid *fid = filp->private_data; struct p9_fid *fid = filp->private_data;
if (!fid->rdir) if (!fid->rdir)
fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL);
return fid->rdir; return fid->rdir;
...@@ -108,6 +109,7 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx) ...@@ -108,6 +109,7 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx)
if (rdir->tail == rdir->head) { if (rdir->tail == rdir->head) {
struct iov_iter to; struct iov_iter to;
int n; int n;
iov_iter_kvec(&to, READ, &kvec, 1, buflen); iov_iter_kvec(&to, READ, &kvec, 1, buflen);
n = p9_client_read(file->private_data, ctx->pos, &to, n = p9_client_read(file->private_data, ctx->pos, &to,
&err); &err);
...@@ -233,5 +235,5 @@ const struct file_operations v9fs_dir_operations_dotl = { ...@@ -233,5 +235,5 @@ const struct file_operations v9fs_dir_operations_dotl = {
.iterate_shared = v9fs_dir_readdir_dotl, .iterate_shared = v9fs_dir_readdir_dotl,
.open = v9fs_file_open, .open = v9fs_file_open,
.release = v9fs_dir_release, .release = v9fs_dir_release,
.fsync = v9fs_file_fsync_dotl, .fsync = v9fs_file_fsync_dotl,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment