File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 11obj-m += simplefs.o
2- simplefs-objs := fs.o super.o inode.o file.o dir.o extent.o
3-
2+ simplefs-objs := fs.o super.o inode.o file.o dir.o extent.o symlink.o
43KDIR ?= /lib/modules/$(shell uname -r) /build
54
65MKFS = mkfs.simplefs
Original file line number Diff line number Diff line change 99#include "simplefs.h"
1010
1111static const struct inode_operations simplefs_inode_ops ;
12- static const struct inode_operations symlink_inode_ops ;
1312
1413/* Either return the inode that corresponds to a given inode number (ino), if
1514 * it is already in the cache, or create a new inode object if it is not in the
@@ -1161,13 +1160,6 @@ static int simplefs_symlink(struct inode *dir,
11611160 return ret ;
11621161}
11631162
1164- static const char * simplefs_get_link (struct dentry * dentry ,
1165- struct inode * inode ,
1166- struct delayed_call * done )
1167- {
1168- return inode -> i_link ;
1169- }
1170-
11711163static const struct inode_operations simplefs_inode_ops = {
11721164 .lookup = simplefs_lookup ,
11731165 .create = simplefs_create ,
@@ -1178,7 +1170,3 @@ static const struct inode_operations simplefs_inode_ops = {
11781170 .link = simplefs_link ,
11791171 .symlink = simplefs_symlink ,
11801172};
1181-
1182- static const struct inode_operations symlink_inode_ops = {
1183- .get_link = simplefs_get_link ,
1184- };
Original file line number Diff line number Diff line change @@ -159,4 +159,7 @@ struct simplefs_sb_info {
159159#endif /* __KERNEL__ */
160160};
161161
162+
163+ /* symlink.c */
164+ extern const struct inode_operations symlink_inode_ops ;
162165#endif /* SIMPLEFS_H */
You can’t perform that action at this time.
0 commit comments