|
| 1 | +gfs2: Rename dinode_demise to evict_behavior |
| 2 | + |
| 3 | +jira LE-3201 |
| 4 | +Rebuild_History Non-Buildable kernel-rt-4.18.0-553.27.1.rt7.368.el8_10 |
| 5 | +commit-author Andreas Gruenbacher <agruenba@redhat.com> |
| 6 | +commit c79ba4be351a06e0ac4c51143a83023bb37888d6 |
| 7 | +Empty-Commit: Cherry-Pick Conflicts during history rebuild. |
| 8 | +Will be included in final tarball splat. Ref for failed cherry-pick at: |
| 9 | +ciq/ciq_backports/kernel-rt-4.18.0-553.27.1.rt7.368.el8_10/c79ba4be.failed |
| 10 | + |
| 11 | +Rename enum dinode_demise to evict_behavior and its items |
| 12 | +SHOULD_DELETE_DINODE to EVICT_SHOULD_DELETE, |
| 13 | +SHOULD_NOT_DELETE_DINODE to EVICT_SHOULD_SKIP_DELETE, and |
| 14 | +SHOULD_DEFER_EVICTION to EVICT_SHOULD_DEFER_DELETE. |
| 15 | + |
| 16 | +In gfs2_evict_inode(), add a separate variable of type enum |
| 17 | +evict_behavior instead of implicitly casting to int. |
| 18 | + |
| 19 | + Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> |
| 20 | +(cherry picked from commit c79ba4be351a06e0ac4c51143a83023bb37888d6) |
| 21 | + Signed-off-by: Jonathan Maple <jmaple@ciq.com> |
| 22 | + |
| 23 | +# Conflicts: |
| 24 | +# fs/gfs2/super.c |
| 25 | +diff --cc fs/gfs2/super.c |
| 26 | +index 0857964a90b5,f43b238ccaf1..000000000000 |
| 27 | +--- a/fs/gfs2/super.c |
| 28 | ++++ b/fs/gfs2/super.c |
| 29 | +@@@ -1369,16 -1341,14 +1369,22 @@@ static enum evict_behavior evict_should |
| 30 | + } |
| 31 | + |
| 32 | + if (gfs2_inode_already_deleted(ip->i_gl, ip->i_no_formal_ino)) |
| 33 | +- return SHOULD_NOT_DELETE_DINODE; |
| 34 | ++ return EVICT_SHOULD_SKIP_DELETE; |
| 35 | + ret = gfs2_check_blk_type(sdp, ip->i_no_addr, GFS2_BLKST_UNLINKED); |
| 36 | + if (ret) |
| 37 | +- return SHOULD_NOT_DELETE_DINODE; |
| 38 | ++ return EVICT_SHOULD_SKIP_DELETE; |
| 39 | + |
| 40 | +++<<<<<<< HEAD |
| 41 | + + if (test_bit(GLF_INSTANTIATE_NEEDED, &ip->i_gl->gl_flags)) { |
| 42 | + + ret = gfs2_instantiate(gh); |
| 43 | + + if (ret) |
| 44 | + + return SHOULD_NOT_DELETE_DINODE; |
| 45 | + + } |
| 46 | +++======= |
| 47 | ++ ret = gfs2_instantiate(gh); |
| 48 | ++ if (ret) |
| 49 | ++ return EVICT_SHOULD_SKIP_DELETE; |
| 50 | +++>>>>>>> c79ba4be351a (gfs2: Rename dinode_demise to evict_behavior) |
| 51 | + |
| 52 | + /* |
| 53 | + * The inode may have been recreated in the meantime. |
| 54 | +* Unmerged path fs/gfs2/super.c |
0 commit comments