kernel: bump 4.19 to 4.19.16
[openwrt/staging/chunkeey.git] / target / linux / generic / backport-4.19 / 500-ubifs-Handle-re-linking-of-inodes-correctly-while-re.patch
index 345a73cf46bdefa2dc5692e6f3d3dc5eddde042c..53e2c2aaba75adf53c01a2309b9577699034733d 100644 (file)
@@ -36,7 +36,7 @@ Signed-off-by: Richard Weinberger <richard@nod.at>
 
 --- a/fs/ubifs/replay.c
 +++ b/fs/ubifs/replay.c
-@@ -210,6 +210,38 @@ static int trun_remove_range(struct ubif
+@@ -242,6 +242,38 @@ static bool inode_still_linked(struct ub
  }
  
  /**
@@ -75,15 +75,15 @@ Signed-off-by: Richard Weinberger <richard@nod.at>
   * apply_replay_entry - apply a replay entry to the TNC.
   * @c: UBIFS file-system description object
   * @r: replay entry to apply
-@@ -236,6 +268,11 @@ static int apply_replay_entry(struct ubi
-                       {
-                               ino_t inum = key_inum(c, &r->key);
+@@ -270,6 +302,11 @@ static int apply_replay_entry(struct ubi
  
-+                              if (inode_still_linked(c, r)) {
-+                                      err = 0;
+                               if (inode_still_linked(c, r)) {
+                                       err = 0;
 +                                      break;
 +                              }
 +
-                               err = ubifs_tnc_remove_ino(c, inum);
-                               break;
-                       }
++                              if (inode_still_linked(c, r)) {
++                                      err = 0;
+                                       break;
+                               }