Skip to content

Commit dd996a3

Browse files
Marios Makassikisnamjaejeon
Marios Makassikis
authored andcommitted
ksmbd: smb1: remove now unused compat_generic_fillattr
Signed-off-by: Marios Makassikis <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent 4ccc24f commit dd996a3

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

compat.c

-26
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
#endif
99

1010
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 6, 0)
11-
void compat_generic_fillattr(struct path *path, u32 request_mask,
12-
struct inode *inode, struct kstat *kstat)
13-
{
14-
generic_fillattr(mnt_idmap(path->mnt), request_mask,
15-
inode, kstat);
16-
17-
}
18-
1911
int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
2012
struct dentry *dentry,
2113
struct xattr_dos_attrib *da)
@@ -46,13 +38,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)
4638

4739
}
4840

49-
void compat_generic_fillattr(struct path *path, u32 request_mask,
50-
struct inode *inode, struct kstat *kstat)
51-
{
52-
generic_fillattr(mnt_idmap(path->mnt), inode, kstat);
53-
54-
}
55-
5641
int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
5742
struct dentry *dentry,
5843
struct xattr_dos_attrib *da)
@@ -81,12 +66,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)
8166
{
8267
return inode_permission(mnt_user_ns(path->mnt), inode, mask);
8368

84-
}
85-
void compat_generic_fillattr(struct path *path, u32 request_mask,
86-
struct inode *inode, struct kstat *kstat)
87-
{
88-
generic_fillattr(mnt_user_ns(path->mnt), inode, kstat);
89-
9069
}
9170

9271
int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
@@ -118,11 +97,6 @@ int compat_inode_permission(struct path *path, struct inode *inode, int mask)
11897
return inode_permission(inode, mask);
11998

12099
}
121-
void compat_generic_fillattr(struct path *path, u32 request_mask,
122-
struct inode *inode, struct kstat *kstat)
123-
{
124-
generic_fillattr(inode, kstat);
125-
}
126100
int compat_ksmbd_vfs_get_dos_attrib_xattr(const struct path *path,
127101
struct dentry *dentry,
128102
struct xattr_dos_attrib *da)

compat.h

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ struct xattr_dos_attrib;
88

99
/* linux vfs */
1010
int compat_inode_permission(struct path *path, struct inode *inode, int mask);
11-
void compat_generic_fillattr(struct path *path, u32 request_mask,
12-
struct inode *inode, struct kstat *kstat);
13-
1411

1512
/* ksmbd vfs */
1613
ssize_t compat_ksmbd_vfs_getxattr(struct path *path, struct dentry *dentry,

0 commit comments

Comments
 (0)