Commit 82dd124
ext4: replace opencoded i_writecount usage with inode_is_open_for_write()
There is a function which clearly conveys the objective of checking
i_writecount. Additionally the usage in ext4_mb_initialize_context was
wrong, since a node would have wrongfully been reported as writable if
i_writecount had a negative value (MMAP_DENY_WRITE).
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>1 parent 53cf978 commit 82dd124
2 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4176 | 4176 | | |
4177 | 4177 | | |
4178 | 4178 | | |
4179 | | - | |
4180 | | - | |
4181 | | - | |
| 4179 | + | |
| 4180 | + | |
4182 | 4181 | | |
4183 | 4182 | | |
4184 | 4183 | | |
| |||
4258 | 4257 | | |
4259 | 4258 | | |
4260 | 4259 | | |
4261 | | - | |
| 4260 | + | |
4262 | 4261 | | |
4263 | 4262 | | |
4264 | 4263 | | |
| |||
0 commit comments