-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '9p-for-5.16-rc1' of git://github.com/martinetd/linux
Pull 9p updates from Dominique Martinet: "Fixes, netfs read support and checkpatch rewrite: - fix syzcaller uninitialized value usage after missing error check - add module autoloading based on transport name - convert cached reads to use netfs helpers - adjust readahead based on transport msize - and many, many checkpatch.pl warning fixes..." * tag '9p-for-5.16-rc1' of git://github.com/martinetd/linux: 9p: fix a bunch of checkpatch warnings 9p: set readahead and io size according to maxsize 9p p9mode2perm: remove useless strlcpy and check sscanf return code 9p v9fs_parse_options: replace simple_strtoul with kstrtouint 9p: fix file headers fs/9p: fix indentation and Add missing a blank line after declaration fs/9p: fix warnings found by checkpatch.pl 9p: fix minor indentation and codestyle fs/9p: cleanup: opening brace at the beginning of the next line 9p: Convert to using the netfs helper lib to do reads and caching fscache_cookie_enabled: check cookie is valid before accessing it net/9p: autoload transport modules 9p/net: fix missing error check in p9_check_errors
- Loading branch information
Showing
33 changed files
with
518 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
// SPDX-License-Identifier: LGPL-2.1 | ||
/* | ||
* Copyright IBM Corporation, 2010 | ||
* Author Aneesh Kumar K.V <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of version 2.1 of the GNU Lesser General Public License | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it would be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
*/ | ||
|
||
#include <linux/module.h> | ||
|
@@ -123,6 +115,7 @@ static int v9fs_set_acl(struct p9_fid *fid, int type, struct posix_acl *acl) | |
char *name; | ||
size_t size; | ||
void *buffer; | ||
|
||
if (!acl) | ||
return 0; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
/* SPDX-License-Identifier: LGPL-2.1 */ | ||
/* | ||
* Copyright IBM Corporation, 2010 | ||
* Author Aneesh Kumar K.V <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of version 2.1 of the GNU Lesser General Public License | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it would be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
*/ | ||
#ifndef FS_9P_ACL_H | ||
#define FS_9P_ACL_H | ||
|
||
#ifdef CONFIG_9P_FS_POSIX_ACL | ||
extern int v9fs_get_acl(struct inode *, struct p9_fid *); | ||
extern struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type, bool rcu); | ||
extern int v9fs_acl_chmod(struct inode *, struct p9_fid *); | ||
extern int v9fs_set_create_acl(struct inode *, struct p9_fid *, | ||
struct posix_acl *, struct posix_acl *); | ||
extern int v9fs_acl_mode(struct inode *dir, umode_t *modep, | ||
struct posix_acl **dpacl, struct posix_acl **pacl); | ||
extern void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl); | ||
int v9fs_get_acl(struct inode *inode, struct p9_fid *fid); | ||
struct posix_acl *v9fs_iop_get_acl(struct inode *inode, int type, | ||
bool rcu); | ||
int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid); | ||
int v9fs_set_create_acl(struct inode *inode, struct p9_fid *fid, | ||
struct posix_acl *dacl, struct posix_acl *acl); | ||
int v9fs_acl_mode(struct inode *dir, umode_t *modep, | ||
struct posix_acl **dpacl, struct posix_acl **pacl); | ||
void v9fs_put_acl(struct posix_acl *dacl, struct posix_acl *acl); | ||
#else | ||
#define v9fs_iop_get_acl NULL | ||
static inline int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.