diff options
Diffstat (limited to 'fs/inode.c')
-rw-r--r-- | fs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/inode.c b/fs/inode.c index fd401028a309..03102d6ef044 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -416,7 +416,7 @@ void inode_add_lru(struct inode *inode) | |||
416 | { | 416 | { |
417 | if (!(inode->i_state & (I_DIRTY_ALL | I_SYNC | | 417 | if (!(inode->i_state & (I_DIRTY_ALL | I_SYNC | |
418 | I_FREEING | I_WILL_FREE)) && | 418 | I_FREEING | I_WILL_FREE)) && |
419 | !atomic_read(&inode->i_count) && inode->i_sb->s_flags & MS_ACTIVE) | 419 | !atomic_read(&inode->i_count) && inode->i_sb->s_flags & SB_ACTIVE) |
420 | inode_lru_list_add(inode); | 420 | inode_lru_list_add(inode); |
421 | } | 421 | } |
422 | 422 | ||
@@ -595,7 +595,7 @@ static void dispose_list(struct list_head *head) | |||
595 | * @sb: superblock to operate on | 595 | * @sb: superblock to operate on |
596 | * | 596 | * |
597 | * Make sure that no inodes with zero refcount are retained. This is | 597 | * Make sure that no inodes with zero refcount are retained. This is |
598 | * called by superblock shutdown after having MS_ACTIVE flag removed, | 598 | * called by superblock shutdown after having SB_ACTIVE flag removed, |
599 | * so any inode reaching zero refcount during or after that call will | 599 | * so any inode reaching zero refcount during or after that call will |
600 | * be immediately evicted. | 600 | * be immediately evicted. |
601 | */ | 601 | */ |
@@ -1492,7 +1492,7 @@ static void iput_final(struct inode *inode) | |||
1492 | else | 1492 | else |
1493 | drop = generic_drop_inode(inode); | 1493 | drop = generic_drop_inode(inode); |
1494 | 1494 | ||
1495 | if (!drop && (sb->s_flags & MS_ACTIVE)) { | 1495 | if (!drop && (sb->s_flags & SB_ACTIVE)) { |
1496 | inode_add_lru(inode); | 1496 | inode_add_lru(inode); |
1497 | spin_unlock(&inode->i_lock); | 1497 | spin_unlock(&inode->i_lock); |
1498 | return; | 1498 | return; |
@@ -1644,7 +1644,7 @@ int generic_update_time(struct inode *inode, struct timespec *time, int flags) | |||
1644 | if (flags & S_MTIME) | 1644 | if (flags & S_MTIME) |
1645 | inode->i_mtime = *time; | 1645 | inode->i_mtime = *time; |
1646 | 1646 | ||
1647 | if (!(inode->i_sb->s_flags & MS_LAZYTIME) || (flags & S_VERSION)) | 1647 | if (!(inode->i_sb->s_flags & SB_LAZYTIME) || (flags & S_VERSION)) |
1648 | iflags |= I_DIRTY_SYNC; | 1648 | iflags |= I_DIRTY_SYNC; |
1649 | __mark_inode_dirty(inode, iflags); | 1649 | __mark_inode_dirty(inode, iflags); |
1650 | return 0; | 1650 | return 0; |
@@ -1691,7 +1691,7 @@ bool __atime_needs_update(const struct path *path, struct inode *inode, | |||
1691 | 1691 | ||
1692 | if (IS_NOATIME(inode)) | 1692 | if (IS_NOATIME(inode)) |
1693 | return false; | 1693 | return false; |
1694 | if ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode)) | 1694 | if ((inode->i_sb->s_flags & SB_NODIRATIME) && S_ISDIR(inode->i_mode)) |
1695 | return false; | 1695 | return false; |
1696 | 1696 | ||
1697 | if (mnt->mnt_flags & MNT_NOATIME) | 1697 | if (mnt->mnt_flags & MNT_NOATIME) |