diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-18 23:54:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-11-18 23:54:10 +0100 |
commit | c6d64479d6093a5c3d709d4cc992a5344877cc3c (patch) | |
tree | af6164db1fbb68146e208f4cefdd9f377c36b8e8 /fs/libfs.c | |
parent | Merge tag 'pull-ufs' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs (diff) | |
parent | libfs: kill empty_dir_getattr() (diff) | |
download | linux-c6d64479d6093a5c3d709d4cc992a5344877cc3c.tar.xz linux-c6d64479d6093a5c3d709d4cc992a5344877cc3c.zip |
Merge tag 'pull-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull statx updates from Al Viro:
"Sanitize struct filename and lookup flags handling in statx and
friends"
* tag 'pull-statx' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
libfs: kill empty_dir_getattr()
fs: Simplify getattr interface function checking AT_GETATTR_NOSEC flag
fs/stat.c: switch to CLASS(fd_raw)
kill getname_statx_lookup_flags()
io_statx_prep(): use getname_uflags()
Diffstat (limited to 'fs/libfs.c')
-rw-r--r-- | fs/libfs.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/libfs.c b/fs/libfs.c index a168ece5cc61..748ac5923154 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -1715,15 +1715,6 @@ static struct dentry *empty_dir_lookup(struct inode *dir, struct dentry *dentry, return ERR_PTR(-ENOENT); } -static int empty_dir_getattr(struct mnt_idmap *idmap, - const struct path *path, struct kstat *stat, - u32 request_mask, unsigned int query_flags) -{ - struct inode *inode = d_inode(path->dentry); - generic_fillattr(&nop_mnt_idmap, request_mask, inode, stat); - return 0; -} - static int empty_dir_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) { @@ -1737,9 +1728,7 @@ static ssize_t empty_dir_listxattr(struct dentry *dentry, char *list, size_t siz static const struct inode_operations empty_dir_inode_operations = { .lookup = empty_dir_lookup, - .permission = generic_permission, .setattr = empty_dir_setattr, - .getattr = empty_dir_getattr, .listxattr = empty_dir_listxattr, }; |