Skip to content

Commit 1eb80d6

Browse files
committed
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull more vfs updates from Al Viro: "A couple of misc patches" * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: afs dynroot: switch to simple_dir_operations fs/handle.c - fix up kerneldoc
2 parents 7edee52 + 473ef57 commit 1eb80d6

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

fs/afs/dynroot.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
#include <linux/dns_resolver.h>
1111
#include "internal.h"
1212

13-
const struct file_operations afs_dynroot_file_operations = {
14-
.open = dcache_dir_open,
15-
.release = dcache_dir_close,
16-
.iterate_shared = dcache_readdir,
17-
.llseek = dcache_dir_lseek,
18-
};
19-
2013
/*
2114
* Probe to see if a cell may exist. This prevents positive dentries from
2215
* being created unnecessarily.

fs/afs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ struct inode *afs_iget_pseudo_dir(struct super_block *sb, bool root)
443443
inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO;
444444
if (root) {
445445
inode->i_op = &afs_dynroot_inode_operations;
446-
inode->i_fop = &afs_dynroot_file_operations;
446+
inode->i_fop = &simple_dir_operations;
447447
} else {
448448
inode->i_op = &afs_autocell_inode_operations;
449449
}

fs/afs/internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,6 @@ extern int afs_silly_iput(struct dentry *, struct inode *);
910910
/*
911911
* dynroot.c
912912
*/
913-
extern const struct file_operations afs_dynroot_file_operations;
914913
extern const struct inode_operations afs_dynroot_inode_operations;
915914
extern const struct dentry_operations afs_dynroot_dentry_operations;
916915

fs/fhandle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static long do_handle_open(int mountdirfd, struct file_handle __user *ufh,
246246
* sys_open_by_handle_at: Open the file handle
247247
* @mountdirfd: directory file descriptor
248248
* @handle: file handle to be opened
249-
* @flag: open flags.
249+
* @flags: open flags.
250250
*
251251
* @mountdirfd indicate the directory file descriptor
252252
* of the mount point. file handle is decoded relative

0 commit comments

Comments
 (0)