diff options
| author | Mark Brown <broonie@kernel.org> | 2023-08-18 22:46:19 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2023-08-18 22:46:19 +0100 |
| commit | ab4724302feedcd33633fd409667a8ee0016f13d (patch) | |
| tree | 245c7082ca66780da02df0b7cedc91a5090b795f /fs/nilfs2/inode.c | |
| parent | 46f53bde6e69edf8a2e0943babb3f160b30ee436 (diff) | |
| parent | ef75e767167a8f30c7690bc4689dba76329ee06e (diff) | |
Add cs42l43 PC focused SoundWire CODEC
Merge series from Charles Keepax <ckeepax@opensource.cirrus.com>:
This patch chain adds support for the Cirrus Logic cs42l43 PC focused
SoundWire CODEC.
Diffstat (limited to 'fs/nilfs2/inode.c')
| -rw-r--r-- | fs/nilfs2/inode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index a8ce522ac747..35bc79305318 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c @@ -1101,9 +1101,17 @@ int nilfs_set_file_dirty(struct inode *inode, unsigned int nr_dirty) int __nilfs_mark_inode_dirty(struct inode *inode, int flags) { + struct the_nilfs *nilfs = inode->i_sb->s_fs_info; struct buffer_head *ibh; int err; + /* + * Do not dirty inodes after the log writer has been detached + * and its nilfs_root struct has been freed. + */ + if (unlikely(nilfs_purging(nilfs))) + return 0; + err = nilfs_load_inode_block(inode, &ibh); if (unlikely(err)) { nilfs_warn(inode->i_sb, |
