]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - fs/inode.c
Revert "drm/amdgpu/display: set vblank_disable_immediate for DC"
[mirror_ubuntu-jammy-kernel.git] / fs / inode.c
index ed0cab8a32db109c6851ddcf567d8de83d1c5c22..ea380e3a4db15d0e38849088d60c67308ee15ac8 100644 (file)
@@ -27,7 +27,7 @@
  * Inode locking rules:
  *
  * inode->i_lock protects:
- *   inode->i_state, inode->i_hash, __iget()
+ *   inode->i_state, inode->i_hash, __iget(), inode->i_io_list
  * Inode LRU list locks protect:
  *   inode->i_sb->s_inode_lru, inode->i_lru
  * inode->i_sb->s_inode_list_lock protects:
@@ -1782,12 +1782,13 @@ EXPORT_SYMBOL(generic_update_time);
  * This does the actual work of updating an inodes time or version.  Must have
  * had called mnt_want_write() before calling this.
  */
-static int update_time(struct inode *inode, struct timespec64 *time, int flags)
+int inode_update_time(struct inode *inode, struct timespec64 *time, int flags)
 {
        if (inode->i_op->update_time)
                return inode->i_op->update_time(inode, time, flags);
        return generic_update_time(inode, time, flags);
 }
+EXPORT_SYMBOL(inode_update_time);
 
 /**
  *     atime_needs_update      -       update the access time
@@ -1857,7 +1858,7 @@ void touch_atime(const struct path *path)
         * of the fs read only, e.g. subvolumes in Btrfs.
         */
        now = current_time(inode);
-       update_time(inode, &now, S_ATIME);
+       inode_update_time(inode, &now, S_ATIME);
        __mnt_drop_write(mnt);
 skip_update:
        sb_end_write(inode->i_sb);
@@ -2002,7 +2003,7 @@ int file_update_time(struct file *file)
        if (__mnt_want_write_file(file))
                return 0;
 
-       ret = update_time(inode, &now, sync_it);
+       ret = inode_update_time(inode, &now, sync_it);
        __mnt_drop_write_file(file);
 
        return ret;