@@ -142,11 +142,11 @@ static int __sdfat_cmpi(const struct dentry *dentry, unsigned int len,
142142 * FUNCTIONS WHICH HAS KERNEL VERSION DEPENDENCY
143143 *************************************************************************/
144144#if LINUX_VERSION_CODE < KERNEL_VERSION (4 , 16 , 0 )
145- static inline void inode_set_iversion (struct inode * inode , u64 val )
145+ static inline void sdfat_inode_set_iversion (struct inode * inode , u64 val )
146146{
147147 inode -> i_version = val ;
148148}
149- static inline u64 inode_peek_iversion (struct inode * inode )
149+ static inline u64 sdfat_inode_peek_iversion (struct inode * inode )
150150{
151151 return inode -> i_version ;
152152}
@@ -1255,7 +1255,7 @@ static int __sdfat_revalidate_common(struct dentry *dentry)
12551255 spin_lock (& dentry -> d_lock );
12561256 if ((!dentry -> d_inode ) && (!__check_dstate_locked (dentry ) &&
12571257 (dentry -> d_time !=
1258- (unsigned long )inode_peek_iversion (dentry -> d_parent -> d_inode )))) {
1258+ (unsigned long )sdfat_inode_peek_iversion (dentry -> d_parent -> d_inode )))) {
12591259 ret = 0 ;
12601260 }
12611261 spin_unlock (& dentry -> d_lock );
@@ -2546,7 +2546,7 @@ static struct dentry *__sdfat_lookup(struct inode *dir, struct dentry *dentry)
25462546 dput (alias );
25472547out :
25482548 /* initialize d_time even though it is positive dentry */
2549- dentry -> d_time = (unsigned long )inode_peek_iversion (dir );
2549+ dentry -> d_time = (unsigned long )sdfat_inode_peek_iversion (dir );
25502550 __unlock_super (sb );
25512551
25522552 dentry = d_splice_alias (inode , dentry );
@@ -2593,7 +2593,7 @@ static int sdfat_unlink(struct inode *dir, struct dentry *dentry)
25932593 clear_nlink (inode );
25942594 inode -> i_mtime = inode -> i_atime = ts ;
25952595 sdfat_detach (inode );
2596- dentry -> d_time = (unsigned long )inode_peek_iversion (dir );
2596+ dentry -> d_time = (unsigned long )sdfat_inode_peek_iversion (dir );
25972597out :
25982598 __unlock_d_revalidate (dentry );
25992599 __unlock_super (sb );
@@ -2751,7 +2751,7 @@ static int sdfat_rmdir(struct inode *dir, struct dentry *dentry)
27512751 clear_nlink (inode );
27522752 inode -> i_mtime = inode -> i_atime = ts ;
27532753 sdfat_detach (inode );
2754- dentry -> d_time = (unsigned long )inode_peek_iversion (dir );
2754+ dentry -> d_time = (unsigned long )sdfat_inode_peek_iversion (dir );
27552755out :
27562756 __unlock_d_revalidate (dentry );
27572757 __unlock_super (sb );
@@ -4025,7 +4025,7 @@ static struct inode *sdfat_build_inode(struct super_block *sb,
40254025 goto out ;
40264026 }
40274027 inode -> i_ino = iunique (sb , SDFAT_ROOT_INO );
4028- inode_set_iversion (inode , 1 );
4028+ sdfat_inode_set_iversion (inode , 1 );
40294029 err = sdfat_fill_inode (inode , fid );
40304030 if (err ) {
40314031 iput (inode );
@@ -5063,7 +5063,7 @@ static int sdfat_fill_super(struct super_block *sb, void *data, int silent)
50635063 }
50645064
50655065 root_inode -> i_ino = SDFAT_ROOT_INO ;
5066- inode_set_iversion (root_inode , 1 );
5066+ sdfat_inode_set_iversion (root_inode , 1 );
50675067
50685068 err = sdfat_read_root (root_inode );
50695069 if (err ) {
0 commit comments