Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

export_operations->open(): constify path argument

for the method and its sole instance...

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 2930afe2 9c71fe0a

+2 -2
+1 -1
fs/pidfs.c
··· 847 847 return 0; 848 848 } 849 849 850 - static struct file *pidfs_export_open(struct path *path, unsigned int oflags) 850 + static struct file *pidfs_export_open(const struct path *path, unsigned int oflags) 851 851 { 852 852 /* 853 853 * Clear O_LARGEFILE as open_by_handle_at() forces it and raise
+1 -1
include/linux/exportfs.h
··· 270 270 int (*commit_blocks)(struct inode *inode, struct iomap *iomaps, 271 271 int nr_iomaps, struct iattr *iattr); 272 272 int (*permission)(struct handle_to_path_ctx *ctx, unsigned int oflags); 273 - struct file * (*open)(struct path *path, unsigned int oflags); 273 + struct file * (*open)(const struct path *path, unsigned int oflags); 274 274 #define EXPORT_OP_NOWCC (0x1) /* don't collect v3 wcc data */ 275 275 #define EXPORT_OP_NOSUBTREECHK (0x2) /* no subtree checking */ 276 276 #define EXPORT_OP_CLOSE_BEFORE_UNLINK (0x4) /* close files before unlink */